diff options
author | Usman Akinyemi <usmanakinyemi202@gmail.com> | 2025-03-08 05:05:03 +0530 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-03-07 16:52:01 -0800 |
commit | 1c14b1aedec6e9307e0c73276b8c1c283413ea41 (patch) | |
tree | 99ee5d1cdaecfeb8c6d7f64e4dae89c55643792c /builtin/commit-graph.c | |
parent | db58d5a351031ec51817c1a6566ec5672ba17138 (diff) |
builtin/send-pack: stop using `the_repository`
Remove the_repository global variable in favor of the repository
argument that gets passed in "builtin/send-pack.c".
When `-h` is passed to the command outside a Git repository, the
`run_builtin()` will call the `cmd_send_pack()` function with `repo` set
to NULL and then early in the function, `parse_options()` call will give
the options help and exit.
Mentored-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions