]> git.ipfire.org Git - thirdparty/git.git/commit
bundle: support fsck message configuration
authorJustin Tobler <jltobler@gmail.com>
Wed, 27 Nov 2024 23:33:10 +0000 (17:33 -0600)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Nov 2024 03:07:58 +0000 (12:07 +0900)
commit187574ce869f1244de83fc6a0a5b6d614fe979f2
tree9c9d78a9c2b4ba83348520a7ceb76f8c90d547f9
parent87c01003cdff8c99ebdf053441e4527d85952284
bundle: support fsck message configuration

If the `VERIFY_BUNDLE_FLAG` is set during `unbundle()`, the
git-index-pack(1) spawned is configured with the `--fsck-options` flag
to perform fsck verification. With this flag enabled, there is not a way
to configure fsck message severity though.

Extend the `unbundle_opts` type to store fsck message severity
configuration and update `unbundle()` to conditionally append it to the
`--fsck-objects` flag if provided. This enables `unbundle()` call sites
to support optionally setting the severity for specific fsck messages.

Signed-off-by: Justin Tobler <jltobler@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
bundle.c
bundle.h