]> git.ipfire.org Git - thirdparty/git.git/commit - cache-tree.c
object-file API: have hash_object_file() take "enum object_type"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Fri, 4 Feb 2022 23:48:32 +0000 (00:48 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 26 Feb 2022 01:16:32 +0000 (17:16 -0800)
commit44439c1c5827480f68b37c3cc38f257eaeb3ed2c
tree405962dbb5c68dbc18a2082a066c75a21a669b1d
parent0ff7b4f976b78ab38313356b3e0582e5fa9a3bcc
object-file API: have hash_object_file() take "enum object_type"

Change the hash_object_file() function to take an "enum
object_type".

Since a preceding commit all of its callers are passing either
"{commit,tree,blob,tag}_type", or the result of a call to type_name(),
the parse_object() caller that would pass NULL is now using
stream_object_signature().

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
16 files changed:
apply.c
builtin/fast-export.c
builtin/index-pack.c
builtin/mktag.c
builtin/replace.c
builtin/unpack-objects.c
cache-tree.c
cache.h
convert.c
diffcore-rename.c
dir.c
log-tree.c
object-file.c
object-store.h
object.c
pack-check.c