Re: fixing old commit messages

Markus Wanner <[email protected]>
Newsgroups gmane.comp.version-control.monotone.devel
Message-ID <[email protected]>
On 06/14/2014 06:32 PM, Hendrik Boom wrote:
> When I commit a revision, I get to write a message explaining what this 
> revision does.
> 
> But sometines I look at the old commit messages and cringe.
> 
> I have troubleetyping correctly, and there are often typos and worse.
> 
> Is there any way to edit an old commit message?

What I sometimes do is commit to a private feature branch, where I don't
have to worry much about the commit message. Then "merge" the branch
with mtn pluck, thinking harder about the message after the entire
feature is done (testing takes a while; usually I end up having multiple
commits in the branch or even merges from the parent branch) and then
suspending that feature branch.

Of course, you need to plan ahead for that to work. And technically it's
not really editing the commit message, but rather adding an intermediate
step. But one that doesn't need to be visible to others.

Regards

Markus Wanner
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.