Changing commit message only

Marcus Harnisch marcus.harnisch at verilab.com
Thu Feb 15 16:53:38 UTC 2018


Thanks Kevin. Presumably the same works for ‘commit’ (since ‘amend’ is
still experimental)?

On Thu, Feb 15, 2018 at 5:47 PM, Kevin Bullock <
kbullock+mercurial at ringworld.org> wrote:

> > 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20180215/d0b623d3/attachment-0002.html>


More information about the Mercurial mailing list