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

Re: [PATCH] rebase: add --verify-signatures

From
Alexander 'z33ky' Hirsch <1zeeky@gmail.com>
Date
Dec 17, 2015, 01:04 UTC
Message-ID
<20151217010422.GA19500@blarch>
In-Reply-To
<xmqqfuz2e003.fsf@gitster.mtv.corp.google.com>
On Wed, Dec 16, 2015 at 10:12:12AM -0800, Junio C Hamano wrote:
Show 11 quoted lines
> I do not quite understand how that would help anything.  I do not
> personally believe in projects that wants to sign each and every
> commit, but to them, "an empty signed commit on top" would not fix
> anything once they have an unsigned commit at the tip of a public
> branch.  And for those that care about only the tip to be signed,
> instead of adding such an empty commit, you would rebuild and sign
> your work on top of that unsigned public tip and push back---at
> which point the tip of the public branch would have a signature from
> you.  So such an empty signed commit would either not help, or not
> necessary, to make the resulting history kosher again.
> 

Checking all commits was a mistake I made because of misinterpreting the git-merge code. Only the tip should be checked for a signature. And the reason to get it signed instead of just signing the commits rebased on top is to defer to the judgement of the author of the branch you're rebasing onto instead of checking the unsigned commits for validity yourself.

As I understand it, this is the same reason for the existence of --verify-signatures for git-merge. Otherwise the same argument could be made for git-merge - just do whatever cleanup you need after merging and sign it yourself. Or maybe I haven't grasped what --verify-signatures is for.

Previous: Junio C HamanoNext: Junio C Hamano
Message 6 of 8 in “rebase: add --verify-signatures”
  1. rebase: add --verify-signaturesAlexander 'z33ky' Hirsch, Dec 10, 2015
  2. Junio C HamanoDec 10, 2015
  3. Junio C HamanoDec 10, 2015
  4. Alexander 'z33ky' HirschDec 16, 2015
  5. Junio C HamanoDec 16, 2015
  6. Alexander 'z33ky' HirschDec 17, 2015
  7. Junio C HamanoDec 17, 2015
  8. Alexander 'z33ky' HirschDec 22, 2015

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.