Changing commit message only

Kevin Bullock kbullock+mercurial at ringworld.org
Thu Feb 15 16:47:02 UTC 2018


> On Feb 15, 2018, at 10:35, Marcus Harnisch <marcus.harnisch at verilab.com> wrote:
> 
> Is there a more direct way to amend a commit with just a message change, if there are modified files in the repo? Currently I am working around this by shelving changes, amending the last commit (which strangely works with no file changes), then unshelving again. This appears a bit heavy. Couldn't amend made work even with no file changes? Preferably also in interactive mode?

I often use `hg amend -i -X .` (note the '.') for this purpose.

pacem in terris / мир / शान्ति / ‎‫سَلاَم‬ / 平和
Kevin R. Bullock




More information about the Mercurial mailing list