I've been using the sendemail.cc config as well, but unfortunately it is not used by stgit. If you use stgit to send patches you'll have to copy /usr/share/stgit/templates/patchmail.tmpl to ~/.stgit and add a 'CC: patches@linaro.org' line to it.
I guess we should add these two tips to one of the pages under https://wiki.linaro.org/Mentoring/Git/. Any suggestions?
Cheers,
On Tue, 2011-02-22 at 18:38 +0200, Amit Kucheria wrote:
Hi,
We're required to cc patches@linaro.org for all patches that we send upstream. bzr/launchpad users are already covered or will be shortly.
For those using git-send-email to send patches (and you really should be), it might make sense to use the following command so you don't forget
$ git config --global --add sendemail.bcc "patches@linaro.org"
Check $HOME/.gitconfig to make sure you see "bcc = patches@linaro.org" under the [sendemail] section. WARNING - this will bcc patches@linaro.org on all patches from that machine sent using git-send-email.
If you want more control, and your linaro work happens in a single git tree, you could do the following:
$ cd <your linaro git tree> $ git config --add sendemail.bcc "patches@linaro.org"
Check <your linaro git tree>/.git/config for the bcc entry as above. Now patches send from that tree will be bcc'ed to patches@linaro.
/Amit p.s. There is also a sendemail.cc instead of sendemail.bcc in case you want to use that.
On Tue, 2011-02-22 at 15:59 -0300, Guilherme Salgado wrote:
I've been using the sendemail.cc config as well, but unfortunately it is not used by stgit. If you use stgit to send patches you'll have to copy /usr/share/stgit/templates/patchmail.tmpl to ~/.stgit and add a 'CC: patches@linaro.org' line to it.
Actually, a custom patchmail.tmpl has to be under ~/.stgit/templates and not ~/.stgit.
I guess we should add these two tips to one of the pages under https://wiki.linaro.org/Mentoring/Git/. Any suggestions?
Cheers,
On Tue, 2011-02-22 at 18:38 +0200, Amit Kucheria wrote:
Hi,
We're required to cc patches@linaro.org for all patches that we send upstream. bzr/launchpad users are already covered or will be shortly.
For those using git-send-email to send patches (and you really should be), it might make sense to use the following command so you don't forget
$ git config --global --add sendemail.bcc "patches@linaro.org"
Check $HOME/.gitconfig to make sure you see "bcc = patches@linaro.org" under the [sendemail] section. WARNING - this will bcc patches@linaro.org on all patches from that machine sent using git-send-email.
If you want more control, and your linaro work happens in a single git tree, you could do the following:
$ cd <your linaro git tree> $ git config --add sendemail.bcc "patches@linaro.org"
Check <your linaro git tree>/.git/config for the bcc entry as above. Now patches send from that tree will be bcc'ed to patches@linaro.
/Amit p.s. There is also a sendemail.cc instead of sendemail.bcc in case you want to use that.
On 02/22/2011 10:59 AM, Guilherme Salgado wrote:
I've been using the sendemail.cc config as well, but unfortunately it is not used by stgit. If you use stgit to send patches you'll have to copy /usr/share/stgit/templates/patchmail.tmpl to ~/.stgit and add a 'CC: patches@linaro.org' line to it.
I guess we should add these two tips to one of the pages under https://wiki.linaro.org/Mentoring/Git/. Any suggestions?
We have a link: https://wiki.linaro.org/Mentoring/Git/GitSendEmail
I was going to update it with CC/BCC info once its decided which one is correct.
I suppose we can also add your StGit information there as well. Ironically, as much as I promote the usage of StGit, I've always used git-send-email instead :)
-andy