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

Re: [PATCH 1/2] rebase: support --signoff with implicit rebase

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Mar 15, 2018, 10:11 UTC
Message-ID
<nycvar.QRO.7.76.6.1803151110340.20700@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz>
In-Reply-To
<xmqqh8pizgxg.fsf@gitster-ct.c.googlers.com>
Hi Junio,
On Wed, 14 Mar 2018, Junio C Hamano wrote:
Show 18 quoted lines
> Phillip Wood <phillip.wood@talktalk.net> writes:
> 
> > From: Phillip Wood <phillip.wood@dunelm.org.uk>
> >
> > This allows one to run 'git rebase --exec "make check" --signoff'
> > which is useful when preparing a patch series for publication and is
> > more convenient than doing the signoff with another --exec command.
> > This change also allows --root without --onto to work with --signoff
> > as well (--root with --onto was already supported). Note that the
> > failing test is due to a bug in 'rebase --root' when the root commit
> > is empty which will be fixed in the next commit.
> >
> > Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
> > ---
> 
> How important is the word "implicit" in the title?  Is it your
> intention to actively ignore --signoff when we fall into the
> rebase--interactive codepath explicitly?
The patch makes the explicit case fail ;-)
Show 14 quoted lines
> I offhand do not think of a strong reason why it is a bad idea to
> run "git rebase -i --signoff", turn a few "pick" to either "reword"
> or "edit", and then expect that the editor to edit log messages for
> these commits to add your sign-off when you start editing them.
> The "pick"s that are left as-is would also turn into doing an
> otherwise no-op "commit --amend -s", I guess.
> 
> If you are teaching --signoff to the whole of "rebase--interactive",
> then "git rebase --help" needs a bit of update.
> 
>     --signoff::
>             This flag is passed to 'git am' to sign off all the rebased
>             commits (see linkgit:git-am[1]). Incompatible with the
>             --interactive option.

Good point. I'd actually be in favor of having all rebase modes support --signoff, but I do not want to pile onto Phillip's workload.

Ciao, Dscho

Previous: Junio C HamanoNext: Johannes Schindelin
Message 6 of 15 in “rebase: support --signoff with implicit rebase”
  1. 1/2 rebase: support --signoff with implicit rebasePhillip Wood, Mar 14, 2018
  2. 2/2 rebase --root -k: fix when root commit is emptyPhillip Wood, Mar 14, 2018
  3. Johannes SchindelinMar 15, 2018
  4. Phillip WoodMar 15, 2018
  5. Junio C HamanoMar 14, 2018
  6. Johannes SchindelinMar 15, 2018
  7. Johannes SchindelinMar 15, 2018
  8. Phillip WoodMar 15, 2018
  9. Johannes SchindelinMar 16, 2018
  10. 0/3 rebase: extend --signoff supportPhillip Wood, Mar 20, 2018
  11. 2/3 rebase -p: error out if --signoff is givenPhillip Wood, Mar 20, 2018
  12. 1/3 rebase: extend --signoff supportPhillip Wood, Mar 20, 2018
  13. 3/3 rebase --keep-empty: always use interactive rebasePhillip Wood, Mar 20, 2018
  14. Johannes SchindelinMar 20, 2018
  15. Phillip WoodMar 20, 2018

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.