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

Re: [PATCH] rebase: pass --signoff option to git am

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Dec 6, 2010, 17:28 UTC
Message-ID
<20101206172847.GA6272@burratino>
In-Reply-To
<AANLkTinnn_QnBJ8AZT9ZB+ZHVRDZV0tDret=YQeyfa01@mail.gmail.com>
Giuseppe Bilotta wrote:
> For what it's worth, somebody on #git just asked how to signoff a
> bunch of patches. The answer was to rebase -i and sign off each one of
> them.
How I would do it in existing git:
	git branch oldhead
	git reset --keep base
	git log --oneline --graph HEAD..oldhead;	# the right patches?
	git cherry-pick -s HEAD..oldhead
	git diff oldhead
Or without multiple-cherry-pick, maybe:
	git branch oldhead
	git reset --keep base
	git format-patch -k --stdout HEAD..oldhead >series
	git am -s -3 -i series;	# the right patches?
	git diff oldhead
No opinion on the automatic-signoff-in-rebase here.
Previous: Giuseppe Bilotta
Message 8 of 8 in “rebase: pass --signoff option to git am”
  1. rebase: pass --signoff option to git amGiuseppe Bilotta, Nov 27, 2010
  2. Sverre RabbelierNov 28, 2010
  3. Martin von ZweigbergkNov 27, 2010
  4. Giuseppe BilottaNov 28, 2010
  5. Kevin BallardNov 29, 2010
  6. Giuseppe BilottaNov 30, 2010
  7. Giuseppe BilottaDec 6, 2010
  8. Jonathan NiederDec 6, 2010

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.