[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 08:17:43 CST 2013


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

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/bfc9cdc6/attachment.pgp>


More information about the Mercurial-devel mailing list