summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff_initial..side
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-07-16 14:38:04 +0200
committerJunio C Hamano <gitster@pobox.com>2026-07-16 13:58:25 -0700
commit01f4b61d0302af16b30b2b5141a53e3a88f9f98a (patch)
tree76eee2803241d7844f2c7d6cbb0e5702b3cecb6c /t/t4013/diff.diff_initial..side
parentbb71c3f19e6a693fc1d32e4448be8520132d946e (diff)
refspec: stop depending on `the_repository`
The only remaining user of `the_hash_algo` in "refspec.c" is `refspec_append()`, which needs to know the hash algorithm so that it can parse the appended refspec item. In contrast to the functions adapted in the preceding commit, this function always operates on a `struct refspec`. As that structure is expected to only ever contain refspecs that all use the same hash function it doesn't make sense though to adapt each caller. Instead, adapt the structure itself so that it gets initialized with a hash function and use that hash function to parse new refspec items. Adapt callers accordingly. This removes the final dependency on the global repository variable in "refspec.c", so we can drop `USE_THE_REPOSITORY_VARIABLE`. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions