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

Re: Author signature

From
DSDimitri Sabadie <hadronized@strongly-typed-thoughts.net>
Date
Jun 4, 2024, 12:50 UTC
Message-ID
<D1R8VB91BRR6.3M3651RXOQM5Q@strongly-typed-thoughts.net>
In-Reply-To
<20240514-demonic-quartz-hog-be2bd2@lemur>

On the other side, I just had another idea. What would be best to me is to actually provide a _proof_ that at least the author acknowledges the patch — whether he wrote it or not is another story and I don’t think we can enforce that completely. The goal I want to achieve is that if I send a patch via email, if the patch ends up committed by someone else, I still want to be able to have a proof that “I wrote the patch.”

So assuming the committer is not of bad faith and doesn’t truncate my git commit message… why not simply adding a “sign-off” like line at the end of the commit, but instead of just putting a clear text that anyone could tamper with, we would sign the date at which the commit was made?

For instance, I could have a git message like:
    Fix typo. 
  	-----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA512
    Tue Jun  4 02:49:26 PM CEST 2024
    -----BEGIN PGP SIGNATURE-----
    iHUEARYKAB0WIQRsmRqgbXp8KFc3mc6pQ4aopiUuywUCZl8NVgAKCRCpQ4aopiUu
    yyhWAQCScfP28Py0QbHuqzzOFyjAMwdK0LfwiGfYrfzfv0evlAD9Hd+x8NgvPq2p
    nnnG5tQaHeIS/v8PMP0suy3QiWV8WQc=
    =Ru+m
    -----END PGP SIGNATURE-----

If a create another commit later with "Fix typo." as content, then the date will be different and the signature won’t be the same.

What do you think?
Dimitri
Previous: Konstantin RyabitsevNext: Konstantin Ryabitsev
Message 5 of 6 in “Author signature”
  1. Dimitri SabadieMay 14, 2024
  2. brian m. carlsonMay 14, 2024
  3. Konstantin RyabitsevMay 14, 2024
  4. Konstantin RyabitsevMay 14, 2024
  5. Dimitri SabadieJun 4, 2024
  6. Konstantin RyabitsevJun 4, 2024

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.