Hi,
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 ? I can ask AJ directly but 1) it may be considered as rude and selfish 2) some people may be interested by the answer
Thanks in advance
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
On 06/15/2011 04:17 PM, Andrew Eikum wrote:
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
So writing commit messages with more than one line will add them (all lines except the first one) as a 'sub' commit message. I'm using git for another project and being able to comment a bit more a commit is appreciable.
Thanks !
On Wed, Jun 15, 2011 at 16:28, GOUJON Alexandre ale.goujon@gmail.com wrote:
So writing commit messages with more than one line will add them (all lines except the first one) as a 'sub' commit message. I'm using git for another project and being able to comment a bit more a commit is appreciable.
Simply don't forget to add a blank line after the commit message.