mktag: add a --[no-]strict option
commit06ce79152be8dab44b63faf4486d5c5c171434af
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 6 Jan 2021 11:47:27 +0000 (6 12:47 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Jan 2021 22:22:24 +0000 (6 14:22 -0800)
treee50a9b8420d480cd1fd6180dee94c9016335e972
parent2aa9425fbeb58f459240f223525e512499ab62e4
mktag: add a --[no-]strict option

Now that mktag has been migrated to use the fsck machinery to check
its input, it makes sense to teach it to run in the equivalent of "git
fsck"'s default mode.

For cases where mktag is used to (re)create a tag object using data
from an existing and malformed tag object, the validation may
optionally have to be loosened. Teach the command to take the
"--[no-]strict" option to do so.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-mktag.txt
builtin/mktag.c
t/t3800-mktag.sh