sha1_file: convert index_path 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
bebfecb94c
commit
98e019b067
2
diff.c
2
diff.c
@@ -3246,7 +3246,7 @@ static void diff_fill_oid_info(struct diff_filespec *one)
|
||||
}
|
||||
if (lstat(one->path, &st) < 0)
|
||||
die_errno("stat '%s'", one->path);
|
||||
if (index_path(one->oid.hash, one->path, &st, 0))
|
||||
if (index_path(&one->oid, one->path, &st, 0))
|
||||
die("cannot hash %s", one->path);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user