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

Durham Goode durham at fb.com
Tue Feb 12 15:02:22 CST 2013


I've added code locally that will abort with a message if they use it
without --amend.  It'll be part of the V2 patch.

On 2/12/13 1:38 PM, "Pierre-Yves David" <pierre-yves.david at logilab.fr>
wrote:

>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/
>



More information about the Mercurial-devel mailing list