On 06/15/2011 09:09 AM, GOUJON Alexandre wrote:
I would like to add a 'sub'-message to a commit like this one http://source.winehq.org/git/wine.git/commitdiff/dbd878639424071e1d4c6cfc9bc...
I know that I can specify this text at the beginning of a patch I want to send to wine-patches (befor the '---'). But here, I'm interested in how to do that on the git server side. git commit -a or git commit -m let me specify a 'global' commit message. I googled some key words and RTFMs but didn't find anything relevant.
Any hints on how to do that ?
Just include your message in the commit message after your headline. That will add the message before the "---", like you said, and then it will be imported by git-am (via git-apply), which Julliard uses to import commits from mail.
Julliard is in the habit of removing commit messages unless they're really informative. So, include your message as usual, and Julliard will decide if it's worth leaving in the commit log. If you want to make an argument for why to keep the commit message intact, you should add that after the "---" so it will still be in the mail, but won't be imported by git-am.
Andrew