summaryrefslogtreecommitdiff
path: root/khash.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2019-06-20 07:41:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-06-20 17:40:42 (GMT)
commitc0566d78aac1d5f8ff90c75f2d936487bb5a8d84 (patch)
treed29ea8932124b74d0faab9913d266dbc2777a82c /khash.h
parente465e7c41d5104b48a16b122a666cbbfa184c25d (diff)
downloadgit-c0566d78aac1d5f8ff90c75f2d936487bb5a8d84.zip
git-c0566d78aac1d5f8ff90c75f2d936487bb5a8d84.tar.gz
git-c0566d78aac1d5f8ff90c75f2d936487bb5a8d84.tar.bz2
hash.h: move object_id definition from cache.h
Our hashmap.h helpfully defines a sha1hash() function. But it cannot define a similar oidhash() without including all of cache.h, which itself wants to include hashmap.h! Let's break this circular dependency by moving the definition to hash.h, along with the remaining RAWSZ macros, etc. That will put them with the existing git_hash_algo definition. One alternative would be to move oidhash() into cache.h, but it's already quite bloated. We're better off moving things out than in. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'khash.h')
0 files changed, 0 insertions, 0 deletions