summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>2008-02-25 21:46:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-26 07:57:35 (GMT)
commit45163382437c3862d3beb88134b7a975a3a26443 (patch)
tree3a9d70907689107868c6daee8128687c22a55583 /commit.c
parent7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1 (diff)
downloadgit-45163382437c3862d3beb88134b7a975a3a26443.zip
git-45163382437c3862d3beb88134b7a975a3a26443.tar.gz
git-45163382437c3862d3beb88134b7a975a3a26443.tar.bz2
builtin-fsck: reports missing parent commits
parse_commit ignores parent commits with certain errors (eg. a non commit object is already loaded under the sha1 of the parent). To make fsck reports such errors, it has to compare the nummer of parent commits returned by parse commit with the number of parent commits in the object or in the graft/shallow file. Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commit.c b/commit.c
index 6684c4e..94d5b3d 100644
--- a/commit.c
+++ b/commit.c
@@ -193,7 +193,7 @@ static void prepare_commit_graft(void)
commit_graft_prepared = 1;
}
-static struct commit_graft *lookup_commit_graft(const unsigned char *sha1)
+struct commit_graft *lookup_commit_graft(const unsigned char *sha1)
{
int pos;
prepare_commit_graft();