diff options
author | Patryk Obara <patryk.obara@gmail.com> | 2017-08-20 22:09:29 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-08-20 21:52:08 -0700 |
commit | e3506559d476ccf94c923c30a15500b46204e146 (patch) | |
tree | 5b881cce8baa687c519ab2265155cc850fe86291 /builtin/hash-object.c | |
parent | sha1_file: convert index_path to struct object_id (diff) | |
download | tgif-e3506559d476ccf94c923c30a15500b46204e146.tar.xz |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/hash-object.c b/builtin/hash-object.c index 1c0f0f3327..8a58ce085a 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); |