[RFC] Amend commit messages

Gilles Moris gilles.moris at free.fr
Wed Feb 23 05:31:06 CST 2011


On Wednesday 23 February 2011 11:18:44 am Jason Harris wrote:
> From a personal point of view I just think we should have the option
> --amend to the commit command that basically does:
>
> hg qimport -r tip ; hg qrefresh -e ; hg qfinish tip
>
> Just like it says in http://mercurial.selenic.com/wiki/GitConcepts.
>
> This gets around probably 60% of the problems.
>
> I mean git users use this and they are not killing themselves with it.

Coming back on the name.

I actually hesitated to call the command "amend" because it could be confused 
with the "git commit --amend" (though I don't know git that much).
But after thinking about it:
- amend is option of git commit, not a comand
- "amend" highlight the fact that there is already something pre-existing that 
we'll complement. Not history edition which leave no traces.
- For this reason, may be git would have rather call that git commit --edit

Regards.
Gilles.


More information about the Mercurial-devel mailing list