<div dir="ltr">On Fri, Feb 8, 2013 at 11: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 it<br>
> was<br>> chosen, but it seems a little long.<br><div><br></div><div><div>What about something generic like --no-editor? It's not as explicit</div><div>but we already have --editor which forces an editor, so this will do</div>
<div>the opposite.</div><div><br></div><div>It also opens up the possibility of appearing in other commands with</div><div>similar semantics but without being directly related to amend.</div></div></div>