[PATCH RFC] commit: add --amend option to amend the parent changeset

Arne Babenhauserheide arne_bab at web.de
Tue Feb 21 08:27:45 UTC 2012


Am Montag, 20. Februar 2012, 17:29:13 schrieb Antoine Pitrou:
> On Mon, 20 Feb 2012 17:19:44 +0100
> 
> Jason Harris <jason at jasonfharris.com> wrote:
> > To the user, the amend part is really associated with commit. It's doing
> > the same thing.
> 
> To me as an user, it doesn't. Modifying is not the same as creating.
> Actually, most software has "New document" and "Open document" as
> separate (GUI) commands.

To me it is, because amend is actually for catching errors. So I do not need 
to keep another command in mind. What I use to save is just commit.

When I think of bigger refactoring, it’s different, though. 

You could say that I use hg commit --amend when I don’t actually want to think 
of the history right now. I just want to amend the latest state and not fiddle 
with the graph in any way.

> > Option use
> > is a normal part of mercurial so the reasoning of "use a new command"
> > instead of an "option" just doesn't wash for me.
> 
> Do you plan to introduce a short-hand for "--amend", at least?

That would be nice, I think.

Best wishes,
Arne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 316 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-devel/attachments/20120221/91047a0d/attachment.asc>


More information about the Mercurial-devel mailing list