<div dir="ltr">On Sat, Feb 9, 2013 at 12:21 PM, Mads Kiilerich <<a href="mailto:mads@kiilerich.com">mads@kiilerich.com</a>> wrote:<br>><br>> On 02/09/2013 12:05 AM, Augie Fackler wrote:<br>>><br>>> On Feb 8, 2013, at 9:34 PM, Durham Goode <<a href="mailto:durham@fb.com">durham@fb.com</a>> wrote:<br>
>><br>>>> # HG changeset patch<br>>>> # User Durham Goode <<a href="mailto:durham@fb.com">durham@fb.com</a>><br>>>> # Date 1360352769 28800<br>>>> # Node ID a761c31f54ca302d65b33199f6c9368890267eba<br>
>>> # Parent  e2b176cf28e374eb146c3e131871631ab9ace537<br>>>> commit: add --reuse-message for keeping the old commit message during<br>>>> amend<br>>>><br>>>> When people do 'hg commit --amend', most of the time they don't want to<br>
>>> change<br>>>> the commit message.  This adds a flag to do that without prompting the<br>>>> user.<br>>>><br>>>> I imagine most people will use it in an alias such as:<br>>>><br>
>>>   amend=commit --amend --reuse-message<br>>>><br>>>> Questions:<br>>>> - Anyone have a better name?  'reuse-message' matches git which is why<br>>>> it was<br>>>> chosen, but it seems a little long.<br>
>><br>>> I don't have a better one.<br>><br>><br>> We usually don't use '-' in option names.<br>><br>> (--reuse-message might be long, but it is still shorter than --config<br>> ui.editor=true ... and more cross platform. The feature is still nice to<br>
> have, but not something completely new.)<br>><br>> It would perhaps be better to name the option after what it does instead<br>> of what it doesn't do. Perhaps something like 'filesonly'.<br>><br>
> This option seems to be the opposite of 'qref -e' ... but I guess it is<br>> too late to change the default for amend ...<br><div><br></div><div>Choosing that default was a pretty conscious choice (albeit with</div>
<div>some preferring the opposite):</div><div><br></div><div><a href="http://markmail.org/message/a4jrwzq2232w6tcz">http://markmail.org/message/a4jrwzq2232w6tcz</a></div></div>