diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2015-06-22 17:26:48 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2015-06-23 14:27:36 -0700 |
commit | efaba7cc77fb22753675dc1e4f376b61797eca36 (patch) | |
tree | eecd0ed19beea646b5826fbecede70844046cd37 /fsck.h | |
parent | fsck: disallow demoting grave fsck errors to warnings (diff) | |
download | tgif-efaba7cc77fb22753675dc1e4f376b61797eca36.tar.xz |
fsck: optionally ignore specific fsck issues completely
An fsck issue in a legacy repository might be so common that one would
like not to bother the user with mentioning it at all. With this change,
that is possible by setting the respective message type to "ignore".
This change "abuses" the missingEmail=warn test to verify that "ignore"
is also accepted and works correctly. And while at it, it makes sure
that multiple options work, too (they are passed to unpack-objects or
index-pack as a comma-separated list via the --strict=... command-line
option).
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fsck.h')
-rw-r--r-- | fsck.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3,6 +3,7 @@ #define FSCK_ERROR 1 #define FSCK_WARN 2 +#define FSCK_IGNORE 3 struct fsck_options; |