diff: convert fill_filespec to struct object_id

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Brandon Williams
2017-05-30 10:30:50 -07:00
committed by Junio C Hamano
parent 94a0097a41
commit f9704c2d82
10 changed files with 21 additions and 21 deletions

View File

@ -500,12 +500,12 @@ static struct commit *check_single_commit(struct rev_info *revs)
static void fill_blob_sha1(struct commit *commit, struct diff_filespec *spec)
{
unsigned mode;
unsigned char sha1[20];
struct object_id oid;
if (get_tree_entry(commit->object.oid.hash, spec->path,
sha1, &mode))
oid.hash, &mode))
die("There is no path %s in the commit", spec->path);
fill_filespec(spec, sha1, 1, mode);
fill_filespec(spec, &oid, 1, mode);
return;
}