RFC: Possibility to re-edit last commit message
Jari Aalto
jari.aalto at cante.net
Mon Jan 29 05:07:56 GMT 2007
"Michael Ellerman" <michael at ellerman.id.au> writes:
> On 1/29/07, Jari Aalto <jari.aalto at cante.net> wrote:
>>
>> It happens that when the message is committed, it wasn't quite the way
>> it supposed to be:
>>
>> * formatting
>> * grammar
>> * typos
>> * missing information
>> * something come up, that fot to be mentioned
>>
>> In case of local branches (not checked out one), it would be nice if the
>> message could be re-edited
>>
>> bzr ci --re-edit
>>
>> And that would bring up the editor just like last time. After exiting
>> the editor, that message would be updated (no files updated)
>
> But if someone has pulled the branch in the meantime, and you change
> the message without creating a new commit, you're in a world of pain.
> So just uncommit, edit the message and recommit. It might be nice to
> have a plugin that does it for you though.
As Lars commened as well, could this be made into bzr itself:
--re-edit
would run steps
* "uncommit"
* followed by copying the old message to the editor
* and then "commit"
Jari
More information about the bazaar
mailing list