diff options
author | Patrick Steinhardt <ps@pks.im> | 2025-03-10 08:13:25 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2025-03-10 13:16:19 -0700 |
commit | e5957ca321802339c9710acadae2138262701e5d (patch) | |
tree | 9b24af5ef3d53c2d7e3a0c2b27285317eec4534a /commit.c | |
parent | 7ebf19ce55ebfddd152aab6ddcc6559bba378aec (diff) |
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 'commit.c')
0 files changed, 0 insertions, 0 deletions