summaryrefslogtreecommitdiff
path: root/builtin/hash-object.c
diff options
context:
space:
mode:
authorPatryk Obara <patryk.obara@gmail.com>2017-08-20 20:09:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-21 04:52:08 (GMT)
commite3506559d476ccf94c923c30a15500b46204e146 (patch)
tree5b881cce8baa687c519ab2265155cc850fe86291 /builtin/hash-object.c
parent98e019b067ac8a34e06f9c412f14a080c7c4dc0d (diff)
downloadgit-e3506559d476ccf94c923c30a15500b46204e146.zip
git-e3506559d476ccf94c923c30a15500b46204e146.tar.gz
git-e3506559d476ccf94c923c30a15500b46204e146.tar.bz2
sha1_file: convert index_fd 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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/hash-object.c b/builtin/hash-object.c
index 1c0f0f3..8a58ce0 100644
--- a/builtin/hash-object.c
+++ b/builtin/hash-object.c
@@ -38,7 +38,7 @@ static void hash_fd(int fd, const char *type, const char *path, unsigned flags,
if (fstat(fd, &st) < 0 ||
(literally
? hash_literally(&oid, fd, type, flags)
- : index_fd(oid.hash, fd, &st, type_from_string(type), path, flags)))
+ : index_fd(&oid, fd, &st, type_from_string(type), path, flags)))
die((flags & HASH_WRITE_OBJECT)
? "Unable to add %s to database"
: "Unable to hash %s", path);