aboutsummaryrefslogtreecommitdiffstats
path: root/diff.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2025-03-10 08:13:25 +0100
committerJunio C Hamano <gitster@pobox.com>2025-03-10 13:16:19 -0700
commite5957ca321802339c9710acadae2138262701e5d (patch)
tree9b24af5ef3d53c2d7e3a0c2b27285317eec4534a /diff.c
parentpack-check: stop depending on `the_repository` (diff)
downloadgit-e5957ca321802339c9710acadae2138262701e5d.tar.gz
git-e5957ca321802339c9710acadae2138262701e5d.zip
pack-revindex: stop depending on `the_repository`
There are multiple sites in "pack-revindex.c" where we use the global `the_repository` variable, either explicitly or implicitly by using `the_hash_algo`. In all of those cases we already have a repository available in the calling context though. Refactor the code to instead use the caller-provided repository and remove the `USE_THE_REPOSITORY_VARIABLE` define. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'diff.c')
0 files changed, 0 insertions, 0 deletions