summaryrefslogtreecommitdiffstats
path: root/zlib.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2021-01-28 07:19:42 +0100
committerJunio C Hamano <gitster@pobox.com>2021-01-28 21:02:39 +0100
commit45ee13b942b26925b33d827bda2856e1ed0af0b7 (patch)
tree87f89914fdf93c8d3ef42411657c668680ccadcf /zlib.c
parentrerere: use strmap to store rerere directories (diff)
downloadgit-45ee13b942b26925b33d827bda2856e1ed0af0b7.tar.xz
git-45ee13b942b26925b33d827bda2856e1ed0af0b7.zip
hash_pos(): convert to oid_pos()
All of our callers are actually looking up an object_id, not a bare hash. Likewise, the arrays they are looking in are actual arrays of object_id (not just raw bytes of hashes, as we might find in a pack .idx; those are handled by bsearch_hash()). Using an object_id gives us more type safety, and makes the callers slightly shorter. It also gets rid of the word "sha1" from several access functions, though we could obviously also rename those with s/sha1/hash/. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'zlib.c')
0 files changed, 0 insertions, 0 deletions