path: root/commit.h
diff options
authorMartin Koegler <>2008-02-25 21:46:07 (GMT)
committerJunio C Hamano <>2008-02-26 07:57:35 (GMT)
commit45163382437c3862d3beb88134b7a975a3a26443 (patch)
tree3a9d70907689107868c6daee8128687c22a55583 /commit.h
parent7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1 (diff)
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 <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'commit.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/commit.h b/commit.h
index 10e2b5d..3ad3dd9 100644
--- a/commit.h
+++ b/commit.h
@@ -101,6 +101,7 @@ struct commit_graft {
struct commit_graft *read_graft_line(char *buf, int len);
int register_commit_graft(struct commit_graft *, int);
int read_graft_file(const char *graft_file);
+struct commit_graft *lookup_commit_graft(const unsigned char *sha1);
extern struct commit_list *get_merge_bases(struct commit *rev1, struct commit *rev2, int cleanup);