git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-send-email with GPG signed commits?

From
Jeff King <peff@peff.net>
Date
Oct 20, 2022, 17:44 UTC
Message-ID
<Y1GJAart+/yFc5MR@coredump.intra.peff.net>
In-Reply-To
<4eb8707f-4686-e304-2aab-a6afee11abc9@cepl.eu>
On Thu, Oct 20, 2022 at 06:26:49AM +0200, Matěj Cepl wrote:
Show 6 quoted lines
> did anybody even think about %subj%? Is there some effort somewhere making
> git-send-email(1) supporting transfer of signed commits, where I could join?
> I like hosting sites like sr.ht, which support git-send-email(1), but
> unfortunately using that clears my submission off its GPG signatures. I
> guess, it would be necessary to make some modifications to git-send-email(1)
> and git-am(1). Is there some effort somewhere in that direction?

I think there's an inherent problem here. A commit signature is over the entire commit object. But when you send a patch, you don't know the exact bytes of the resulting commit object. In particular, the "committer" line will have the ident and timestamp from when the receiver applies the patch and turns it into a commit.

So commit signatures are generally an attestation by the committer, not by the author. It's just that the two are usually the same when you are committing locally.

I think you would need some kind of "author-sig" header that signs the commit object bytes _without_ the commit header at all. And that assumes the maintainer's workflow is to never modify a patch in transit, and to apply it at the exact same spot that you wrote it (so that the parent and tree ids remain the same).

-Peff
Previous: Konstantin RyabitsevNext: Junio C Hamano
Message 5 of 13 in “git-send-email with GPG signed commits?”
  1. Matěj CeplOct 20, 2022
  2. Konstantin RyabitsevOct 20, 2022
  3. Matěj CeplOct 20, 2022
  4. Konstantin RyabitsevOct 20, 2022
  5. Jeff KingOct 20, 2022
  6. Junio C HamanoOct 20, 2022
  7. Junio C HamanoOct 20, 2022
  8. Jeff KingOct 20, 2022
  9. Konstantin RyabitsevOct 20, 2022
  10. rsbecker@nexbridge.comOct 20, 2022
  11. Matěj CeplOct 20, 2022
  12. brian m. carlsonOct 20, 2022
  13. Matěj CeplOct 21, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.