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

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

From
PWPhillip Wood <phillip.wood@talktalk.net>
Date
Mar 15, 2018, 10:55 UTC
Message-ID
<c9978ac6-ded3-592e-aa49-53172aad75bf@talktalk.net>
In-Reply-To
<nycvar.QRO.7.76.6.1803151112390.20700@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz>
On 15/03/18 10:18, Johannes Schindelin wrote:
Show 32 quoted lines
> Hi Phillip,
> 
> On Wed, 14 Mar 2018, Phillip Wood wrote:
> 
>> diff --git a/git-rebase.sh b/git-rebase.sh
>> index b353c33d41..40301756be 100755
>> --- a/git-rebase.sh
>> +++ b/git-rebase.sh
>> @@ -459,6 +471,18 @@ then
>>  	git_format_patch_opt="$git_format_patch_opt --progress"
>>  fi
>>  
>> +if test -n "$signoff"
>> +then
>> +	test "$interactive_rebase" = explicit &&
>> +		die "$(gettext "error: interactive rebase does not support --signoff")"
>> +	test "$type" = merge &&
>> +		die "$(gettext "error: merge rebase does not support --signoff")"
>> +	test -n "$preserve_merges" &&
>> +		die "$(gettext "error: cannot combine '--signoff' with '--preserve-merges'")"
>> +	git_am_opt="$git_am_opt $signoff"
>> +	force_rebase=t
>> +fi
> 
> I wonder whether we can have this change as a separate commit? Otherwise
> we would lump that change (--interactive --signoff was previously allowed
> but the --signoff was simply ignored) with the other changes...
> 
> As I mentioned in my reply to Junio's comment, it'd be awesome if
> --interactive --signoff was supported (and likewise --merge --signoff),
> but it feels like an undue feature request to be dumped on you, so I'm
> fine with the patch series simply erroring out on those combinations.

I'll have a look, if it's not too much work I'll do that, it would be nice to have --signoff better supported.

Show 5 quoted lines
> (I don't care about --preserve-merges anymore, as everybody knows by now.)
> 
> Ciao,
> Dscho
> 
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 8 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.