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

Pierre-Yves David pierre-yves.david at logilab.fr
Tue Feb 12 07:38:29 CST 2013


On Sun, Feb 10, 2013 at 11:45:06AM +0000, Brodie Rao wrote:
> On Sat, Feb 9, 2013 at 11:35 AM, Durham Goode <durham at fb.com> 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
> 
> What happens if you specify --reuse-message without --amend? Should
> that raise an error?

Pinging the question.

-- 
Pierre-Yves David

http://www.logilab.fr/

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20130212/6ff33f3c/attachment.pgp>


More information about the Mercurial-devel mailing list