aboutsummaryrefslogtreecommitdiffstats
path: root/commit-graph.c
diff options
context:
space:
mode:
authorAyush Chandekar <ayu.chandekar@gmail.com>2025-07-04 19:42:35 +0530
committerJunio C Hamano <gitster@pobox.com>2025-07-07 08:31:13 -0700
commit7cd03a555a0d951759a5bce201ad0686c0fc8b12 (patch)
treee33021de5f60454949fa803e7e10c5a0a5a38602 /commit-graph.c
parentrepository: move 'repository_format_precious_objects' to repo scope (diff)
downloadgit-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-graph.c')
0 files changed, 0 insertions, 0 deletions