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/replace.c | |
parent | 98e019b067ac8a34e06f9c412f14a080c7c4dc0d (diff) | |
download | git-e3506559d476ccf94c923c30a15500b46204e146.tar.gz |
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/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 f4a85a165b..3e71a77152 100644 --- a/builtin/replace.c +++ b/builtin/replace.c @@ -269,7 +269,7 @@ static void import_object(struct object_id *oid, enum object_type type, if (fstat(fd, &st) < 0) die_errno("unable to fstat %s", filename); - if (index_fd(oid->hash, fd, &st, type, NULL, flags) < 0) + if (index_fd(oid, fd, &st, type, NULL, flags) < 0) die("unable to write object to database"); /* index_fd close()s fd for us */ } |