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>
This commit is contained in:

committed by
Junio C Hamano

parent
98e019b067
commit
e3506559d4
@ -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 */
|
||||
}
|
||||
|
Reference in New Issue
Block a user