[PATCH RFC] commit: add --amend option to amend the parent changeset
solipsis at pitrou.net
Mon Feb 20 09:15:22 CST 2012
On Mon, 20 Feb 2012 15:31:40 +0100
Arne Babenhauserheide <arne_bab at web.de> wrote:
> Am Montag, 13. Februar 2012, 19:44:56 schrieb Pierre-Yves David:
> > (3) As explained explained above, the amend concept **will** most certainly
> > need additional option and flagging. If amend operation is available
> > through a commit flag we have two solution to extend it:
> > A) Add flag to commit which are not related to what commit does.
> > B) Introduce a new command that finish the job.
> > Both solutions leads to inconsistent UI.
> I do not think so.
> This is equivalent to having hg pull -u. It cannot do everything that hg
> update can do, but it is extremely useful. Because in most cases I just need
> the simple use case.
> If I want to update to non-tip, I use hg update.
> If I want to do more than just amend the latest commit, I use hg amend.
Isn't "hg amend" simpler to type than "hg commit --amend"?
That goes counter to the idea of "hg amend" being the complex
(as a user, I prefer separate commands to "--long-options", they are
much easier to type. My 2 cents of course :-))
More information about the Mercurial-devel