diff options
| author | Taylor Blau <me@ttaylorr.com> | 2025-10-15 18:27:50 -0400 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2025-10-16 10:08:53 -0700 |
| commit | 8a5d4bd87d3fa8e9de9bc3b2ddb7ca527fcfeb68 (patch) | |
| tree | d0669432674249bb7a1cda6af05d88845cdfb275 /contrib/persistent-https | |
| parent | c660b0dbcbb70647f5103a4573963397522a1f0f (diff) | |
| download | git-8a5d4bd87d3fa8e9de9bc3b2ddb7ca527fcfeb68.tar.gz git-8a5d4bd87d3fa8e9de9bc3b2ddb7ca527fcfeb68.zip | |
builtin/repack.c: avoid using `hash_to_hex()` in pack geometry
In previous commits, we started passing either repository or
git_hash_algo pointers around to various spots within builtin/repack.c
to reduce our dependency on the_repository in the hope of undef'ing
USE_THE_REPOSITORY_VARIABLE.
This commit takes us as far as we can (easily) go in that direction by
removing the only use of a convenience function that only exists when
USE_THE_REPOSITORY_VARIABLE is defined.
Unfortunately, the only other such function is "is_bare_repository()",
which is less than straightforward to convert into, say,
"repo_is_bare()", the latter of the two accepting a repository pointer.
Punt on that for now, and declare this commit as the stopping point for
our efforts in the direction of undef'ing USE_THE_REPOSITORY_VARIABLE.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
