summaryrefslogtreecommitdiff
path: root/t/t5501-fetch-push-alternates.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2020-12-04 13:51:39 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-12-04 13:55:14 -0800
commit3fa6f2aa57e997ff2e665d83335a8f1078b94cb8 (patch)
tree5a4bd75c4f626d5b4eccffe3fdc4ecbcf099b346 /t/t5501-fetch-push-alternates.sh
parentt0064: make duplicate tests more robust (diff)
downloadtgif-3fa6f2aa57e997ff2e665d83335a8f1078b94cb8.tar.xz
cache.h: move hash/oid functions to hash.h
We define git_hash_algo and object_id in hash.h, but most of the utility functions are declared in the main cache.h. Let's move them to hash.h along with their struct definitions. This cleans up cache.h a bit, but also avoids circular dependencies when other headers need to know about these functions (e.g., if oid-array.h were to have an inline that used oideq(), it couldn't include cache.h because it is itself included by cache.h). No including C files should be affected, because hash.h is always included in cache.h already. We do have to mention repository.h at the top of hash.h, though, since we depend on the_repository in some of our inline functions. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5501-fetch-push-alternates.sh')
0 files changed, 0 insertions, 0 deletions