Re: [PATCH v3 0/3] fast-import: add mode to re-sign invalid commit signatures
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 10, 2026, 22:39 UTC
- Message-ID
- <xmqq8qbzs40p.fsf@gitster.g>
- In-Reply-To
- <abCTTaYCQIub_xjW@denethor>
Justin Tobler <jltobler@gmail.com> writes:
> This certainly seems like a reasonable use case, but if we want to > support leaving previously unsigned objects unsigned too, > `--signed-commits=strip-if-invalid --signed-commits` wouldn't be > granular enough.
Yes, --signed-commits=(re-)sign-if-invalid is a perfect match for that use case. I am just saying that if you add the machinery needed to re-sign, you would be able to reuse it to sign objects that weren't signed in the first place, so that is wherea yet another feature "--sign-commits=all" may fit.