summaryrefslogtreecommitdiff
path: root/fsck.h
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2015-06-22 15:26:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-06-23 21:27:36 (GMT)
commitefaba7cc77fb22753675dc1e4f376b61797eca36 (patch)
treeeecd0ed19beea646b5826fbecede70844046cd37 /fsck.h
parentf50c44073051820cd368be4ca520ae43f34fdf8b (diff)
downloadgit-efaba7cc77fb22753675dc1e4f376b61797eca36.zip
git-efaba7cc77fb22753675dc1e4f376b61797eca36.tar.gz
git-efaba7cc77fb22753675dc1e4f376b61797eca36.tar.bz2
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fsck.h b/fsck.h
index 3ef92a3..1dab276 100644
--- a/fsck.h
+++ b/fsck.h
@@ -3,6 +3,7 @@
#define FSCK_ERROR 1
#define FSCK_WARN 2
+#define FSCK_IGNORE 3
struct fsck_options;