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

Angel Ezquerra angel.ezquerra at gmail.com
Tue Feb 12 08:40:50 CST 2013


On Feb 12, 2013 3:17 PM, "Pierre-Yves David" <pierre-yves.david at logilab.fr>
wrote:
>
> On Sat, Feb 09, 2013 at 03:35:15AM -0800, Durham Goode wrote:
> > # HG changeset patch
> > # User Durham Goode <durham at fb.com>
> > # Date 1360352769 28800
> > # Node ID 96e2d74e5f7b32221480fc7932c9555c84f10670
> > # Parent  e2b176cf28e374eb146c3e131871631ab9ace537
> > commit: add --reuse-message for keeping the old commit message during
amend
> >
> > When people do 'hg commit --amend', most of the time they don't want to
change
> > the commit message.  This adds a flag to do that without prompting the
user.
> >
> > I imagine most people will use it in an alias such as:
> >
> >   amend=commit --amend --reuse-message
>
> the git --reuse-measage have a different semantic. we *NEED* another name.
>
> --
> Pierre-Yves David

What about "--keepmessage"?

Angel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20130212/738ed188/attachment.html>


More information about the Mercurial-devel mailing list