diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2022-02-05 00:48:32 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-02-26 02:16:32 +0100 |
commit | 44439c1c5827480f68b37c3cc38f257eaeb3ed2c (patch) | |
tree | 405962dbb5c68dbc18a2082a066c75a21a669b1d /builtin/replace.c | |
parent | object API: rename hash_object_file_literally() to write_*() (diff) | |
download | git-44439c1c5827480f68b37c3cc38f257eaeb3ed2c.tar.xz git-44439c1c5827480f68b37c3cc38f257eaeb3ed2c.zip |
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>
Diffstat (limited to 'builtin/replace.c')
-rw-r--r-- | builtin/replace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/replace.c b/builtin/replace.c index 995ca68330..53a3b24657 100644 --- a/builtin/replace.c +++ b/builtin/replace.c @@ -409,7 +409,7 @@ static int check_one_mergetag(struct commit *commit, int i; hash_object_file(the_hash_algo, extra->value, extra->len, - type_name(OBJ_TAG), &tag_oid); + OBJ_TAG, &tag_oid); tag = lookup_tag(the_repository, &tag_oid); if (!tag) return error(_("bad mergetag in commit '%s'"), ref); |