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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 17, 2015, 18:22 UTC
Message-ID
<xmqq60zxc4v7.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20151217010422.GA19500@blarch>
Alexander 'z33ky' Hirsch <1zeeky@gmail.com> writes:
> 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 

I suspect that you are missing the bigger workflow issues, if you think this and merge are the same.

git-merge will check the other history on the side branch that you are merging _into_ the trunk, to give you an opportunity to reject what does not pass and keep the trunk sane without doing anything else. How you (or others who asked you to pull) clean up the side branch is outside the scope of its verification.

Your change to "git pull --rebase" checks the other way---the history, which is already the trunk, onto which your work will be rebased. There is nothing you can do without messing with the trunk if the validation did not pass, be it with a rewind-and-rebuild or a sealing empty commit which is pointless.

Previous: Alexander 'z33ky' HirschNext: Alexander 'z33ky' Hirsch
Message 7 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.