]> git.ipfire.org Git - thirdparty/git.git/commit - fsck.c
fsck: make fsck_commit() warn-friendly
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Mon, 22 Jun 2015 15:26:11 +0000 (17:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 Jun 2015 21:27:35 +0000 (14:27 -0700)
commitb3584761eb7284263e702088d71cc6f094fbb926
treebfced37c75d99760e9532d31ca1fa4d9d9509a98
parente6826e335addb557dc80eebe46031f896ac4424c
fsck: make fsck_commit() warn-friendly

When fsck_commit() identifies a problem with the commit, it should try
to make it possible to continue checking the commit object, in case the
user wants to demote the detected errors to mere warnings.

Note that some problems are too problematic to simply ignore. For
example, when the header lines are mixed up, we punt after encountering
an incorrect line. Therefore, demoting certain warnings to errors can
hide other problems. Example: demoting the missingauthor error to
a warning would hide a problematic committer line.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsck.c