How to gpg signed email patches?
- From
- Klaus Frank <vger.kernel.org@frank.fyi>
- Date
- Apr 13, 2025, 19:17 UTC
- Message-ID
- <fx2ofmmhkjmjqfqya5e3qvmovvmpnjepteqobcz4eia5sw64bg@yquuljpwok3f>
Hi,
how do I get "git send-email" to send the patches gpg signed? I tried first signing the commit but after spending time looking into the documentation I couldn't work out how to do it. All I discovered so far is that the "git send-email" appears to be using "git format-patch" internally and that's where it currently gets lost.
Sadly none of the man pages I looked at so far mentions anything about gpg signing in this regards. Not even "git am" does.
Ideally I'd like to have "git send-email" send my patches gpg-signed to ensure authenticity and integrity.
I also considered alternatives like using my MTA to GPG-Sign these mails however as the "git am" documentation also didn't mention gpg signing I refrained from it to avoid breaking it and causing issues for anyone receiving that patch. Same for sending it using "git pack".
Is this currently a limitation or am I just doing it wrong?
Sincerely, Klaus Frank