summaryrefslogtreecommitdiff
path: root/diffcore-rename.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2019-06-20 03:41:45 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-06-20 10:40:42 -0700
commitc0566d78aac1d5f8ff90c75f2d936487bb5a8d84 (patch)
treed29ea8932124b74d0faab9913d266dbc2777a82c /diffcore-rename.c
parentkhash: rename oid helper functions (diff)
downloadtgif-c0566d78aac1d5f8ff90c75f2d936487bb5a8d84.tar.xz
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 'diffcore-rename.c')
0 files changed, 0 insertions, 0 deletions