[PATCH RFC] commit: add --reuse-message for keeping the old commit message during amend

Augie Fackler raf at durin42.com
Tue Feb 12 15:48:32 CST 2013


On Feb 12, 2013, at 4:16 PM, Idan Kamara <idankk86 at gmail.com> wrote:

> On Tue, Feb 12, 2013 at 11:08 PM, Durham Goode <durham at fb.com> wrote:
>>> What about something generic like --no-editor? It's not as explicit
>>> but we already have --editor which forces an editor, so this will do
>>> the opposite.
>>> 
>>> It also opens up the possibility of appearing in other commands with
>>> similar semantics but without being directly related to amend.
>> 
>> I think the name must imply some relationship with another commit, so it's
>> semi intuitive that it's related to --amend. I think a user would be more
>> likely to try --no-editor without --amend, and be confused when it failed.
> 
> The help text should (regardless of the name) say that this option is only
> relevant when used with --amend.

Strawman alternative: a --fast-amend option that doesn't pop up an editor, so you can pass only one flag (that is, --fast-amend would be like --amend --reuse-message).

> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel



More information about the Mercurial-devel mailing list