diff options
| author | Ayush Chandekar <ayu.chandekar@gmail.com> | 2025-07-04 19:42:35 +0530 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-07-07 08:31:13 -0700 |
| commit | 7cd03a555a0d951759a5bce201ad0686c0fc8b12 (patch) | |
| tree | e33021de5f60454949fa803e7e10c5a0a5a38602 /commit.c | |
| parent | repository: move 'repository_format_precious_objects' to repo scope (diff) | |
| download | git-7cd03a555a0d951759a5bce201ad0686c0fc8b12.tar.gz git-7cd03a555a0d951759a5bce201ad0686c0fc8b12.zip | |
builtin/prune: stop depending on 'the_repository'
Refactor builtin/prune.c to remove the dependency on the global
'the_repository'. Replace all the occurrences of 'the_repository' with
repo and thus remove the definition '#define
USE_THE_REPOSITORY_VARIABLE'. Also, add a test to make sure that 'git
prune -h' can be called when the repository is `NULL`.
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Ghanshyam Thakkar <shyamthakkar001@gmail.com>
Signed-off-by: Ayush Chandekar <ayu.chandekar@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions
