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:
Patryk Obara
2017-08-20 22:09:28 +02:00
committed by Junio C Hamano
parent bebfecb94c
commit 98e019b067
6 changed files with 10 additions and 10 deletions

2
diff.c
View File

@ -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);
}
}