diff options
author | Patryk Obara <patryk.obara@gmail.com> | 2017-08-20 22:09:30 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-20 21:52:53 -0700 |
commit | da77611d73f3173aa49d362bd7b12a608fb34b94 (patch) | |
tree | e30451a53d2fa28874e2546d90cfbec95b3e7868 /builtin/hash-object.c | |
parent | e3506559d476ccf94c923c30a15500b46204e146 (diff) | |
download | git-da77611d73f3173aa49d362bd7b12a608fb34b94.tar.gz |
sha1_file: convert hash_sha1_file_literally to struct object_id
Convert all remaining callers as well.
Signed-off-by: Patryk Obara <patryk.obara@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/hash-object.c')
-rw-r--r-- | builtin/hash-object.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/hash-object.c b/builtin/hash-object.c index 8a58ce085a..c532ff9320 100644 --- a/builtin/hash-object.c +++ b/builtin/hash-object.c @@ -24,7 +24,7 @@ static int hash_literally(struct object_id *oid, int fd, const char *type, unsig if (strbuf_read(&buf, fd, 4096) < 0) ret = -1; else - ret = hash_sha1_file_literally(buf.buf, buf.len, type, oid->hash, flags); + ret = hash_sha1_file_literally(buf.buf, buf.len, type, oid, flags); strbuf_release(&buf); return ret; } |