From 8b65a34c4a12cdaae7f43f65f760da0f48ad67e3 Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Wed, 12 Jul 2017 17:44:14 -0700 Subject: commit: convert lookup_commit_graft to struct object_id With this patch, commit.h doesn't contain the string 'sha1' any more. Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- fsck.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fsck.c') diff --git a/fsck.c b/fsck.c index b4204d772b..2d2d2e9432 100644 --- a/fsck.c +++ b/fsck.c @@ -736,7 +736,7 @@ static int fsck_commit_buffer(struct commit *commit, const char *buffer, buffer += 41; parent_line_count++; } - graft = lookup_commit_graft(commit->object.oid.hash); + graft = lookup_commit_graft(&commit->object.oid); parent_count = commit_list_count(commit->parents); if (graft) { if (graft->nr_parent == -1 && !parent_count) -- cgit v1.2.1