]> git.ipfire.org Git - thirdparty/git.git/commit
index-pack: --fsck-objects to take an optional argument for fsck msgs
authorJohn Cai <johncai86@gmail.com>
Thu, 1 Feb 2024 01:38:02 +0000 (01:38 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 1 Feb 2024 19:09:53 +0000 (11:09 -0800)
commit0f8edf7317c7eb152bf045ed99b46072439088a6
treea2d2856709c4c32b2908800c215db50b39569bbb
parent2811019f47b7b6f4be256598612c3f574d8c242d
index-pack: --fsck-objects to take an optional argument for fsck msgs

git-index-pack has a --strict option that can take an optional argument
to provide a list of fsck issues to change their severity.
--fsck-objects does not have such a utility, which would be useful if
one would like to be more lenient or strict on data integrity in a
repository.

Like --strict, allow --fsck-objects to also take a list of fsck msgs to
change the severity.

Remove the "For internal use only" note for --fsck-objects, and document
the option. This won't often be used by the normal end user, but it
turns out it is useful for Git forges like GitLab.

Reviewed-by: Christian Couder <christian.couder@gmail.com>
Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-index-pack.txt
builtin/index-pack.c
t/t5300-pack-object.sh