Changing commit message only
Cody Scott
cody at perspexis.com
Thu Feb 15 17:23:56 UTC 2018
hg metaedit will work and you can even pass it --user or --date
On Thu, Feb 15, 2018 at 11:53 AM, Marcus Harnisch <
marcus.harnisch at verilab.com> wrote:
> 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
>>
>>
>
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20180215/adea737e/attachment-0002.html>
More information about the Mercurial
mailing list