aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/ls-files.c
diff options
context:
space:
mode:
authorUsman Akinyemi <usmanakinyemi202@gmail.com>2025-03-08 05:05:04 +0530
committerJunio C Hamano <gitster@pobox.com>2025-03-07 16:52:01 -0800
commit72fe8bfac832a1f1b9b7cdc4efa793c48e13933e (patch)
tree57796ff540ba583eaabd81a48ed1ca3ef740d03c /builtin/ls-files.c
parentbuiltin/send-pack: stop using `the_repository` (diff)
downloadgit-72fe8bfac832a1f1b9b7cdc4efa793c48e13933e.tar.gz
git-72fe8bfac832a1f1b9b7cdc4efa793c48e13933e.zip
builtin/pack-refs: stop using `the_repository`
Remove the_repository global variable in favor of the repository argument that gets passed in "builtin/pack-refs.c". When `-h` is passed to the command outside a Git repository, the `run_builtin()` will call the `cmd_pack_refs()` 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/ls-files.c')
0 files changed, 0 insertions, 0 deletions