diff options
| author | Usman Akinyemi <usmanakinyemi202@gmail.com> | 2025-03-08 05:05:06 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-03-07 16:52:02 -0800 |
| commit | d9dce89192504c63787b98961ee514937af88e61 (patch) | |
| tree | 0ac8d85ef817dc7d0e35f2e755fb818391dc52f3 /t/t2006-checkout-index-basic.sh | |
| parent | builtin/ls-files: stop using `the_repository` (diff) | |
| download | git-d9dce89192504c63787b98961ee514937af88e61.tar.gz git-d9dce89192504c63787b98961ee514937af88e61.zip | |
builtin/for-each-ref: stop using `the_repository`
Remove the_repository global variable in favor of the repository
argument that gets passed in "builtin/for-each-ref.c".
When `-h` is passed to the command outside a Git repository, the
`run_builtin()` will call the `cmd_for_each_ref()` 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 't/t2006-checkout-index-basic.sh')
0 files changed, 0 insertions, 0 deletions
