builtin-fsck: reports missing parent commits
commit45163382437c3862d3beb88134b7a975a3a26443
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>
Mon, 25 Feb 2008 21:46:07 +0000 (25 22:46 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Feb 2008 07:57:35 +0000 (25 23:57 -0800)
tree3a9d70907689107868c6daee8128687c22a55583
parent7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1
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>
builtin-fsck.c
commit.c
commit.h