How can I manipulate the commit comment ?

Asked by Eric

I have written a commit_message_template hook that provides the user with a template to fill in when they are about to commit. I have also written a pre_commit hook which succeeds in getting the comment that the user entered and transforming it to a different format which I would like all commit comments to have.

I need to know how to replace the user supplied comment with my modified one. Is this possible ? I have seen warnings about modifying the input parameters of the pre_commit hook. Does this apply in my case ? Is there any other way of achieving what I am trying to do ?

Question information

Language:
English Edit question
Status:
Answered
For:
Bazaar Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Martin Pool (mbp) said :
#2

http://osdir.com/ml/bazaar/2009-06/msg00383.html

Unfortunately this is not possible at the moment, but we'd like to extend the pre_commit hook so that you can.

Can you help with this problem?

Provide an answer of your own, or ask Eric for more information if necessary.

To post a message you must log in.