author | Martin Koegler <mkoegler@auto.tuwien.ac.at> | |
Mon, 25 Feb 2008 21:46:07 +0000 (22:46 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 26 Feb 2008 07:57:35 +0000 (23:57 -0800) | ||
commit | 45163382437c3862d3beb88134b7a975a3a26443 | |
tree | 3a9d70907689107868c6daee8128687c22a55583 | tree | snapshot |
parent | 7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1 | commit | 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 <mkoegler@auto.tuwien.ac.at>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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 | diff | blob | history | |
commit.c | diff | blob | history | |
commit.h | diff | blob | history |