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
@ -161,7 +161,7 @@ static int ce_compare_data(const struct cache_entry *ce, struct stat *st)
|
||||
|
||||
if (fd >= 0) {
|
||||
struct object_id oid;
|
||||
if (!index_fd(oid.hash, fd, st, OBJ_BLOB, ce->name, 0))
|
||||
if (!index_fd(&oid, fd, st, OBJ_BLOB, ce->name, 0))
|
||||
match = oidcmp(&oid, &ce->oid);
|
||||
/* index_fd() closed the file descriptor already */
|
||||
}
|
||||
|
Reference in New Issue
Block a user