# Can cc's be included in patches sent by send-email

7 messages from 2016-08-11 to 2016-08-11. Participants: Philip Oakley, Jacob Keller, Junio C Hamano.
Thread: https://gitlist.dev/t/43053

## Philip Oakley, 2016-08-11 07:32

Subject: Can cc's be included in patches sent by send-email
Message-ID: <D8F2D8316A4C4E198C6847C1165A8811@PhilipOakley>
URL: https://gitlist.dev/e/D8F2D8316A4C4E198C6847C1165A8811%40PhilipOakley

```
While 'git send-email' can have multiple --cc="addressee" options on the 
command line, is it possible for the "cc:addressee<a@b.c>" to actually be 
included in the patches that are to be sent, so that different patches can 
have different addressee?

The fortmat-patch can include appropriate from lines, so it feels as if the 
sender should be able to add cc: lines at the same place. Maybe its just 
part of th docs I've missed.

This is for the workflow where the patch series (including cover letter) is 
reviewed before send-email is invoked to send to all adressees.

--
Philip 


```

## Jacob Keller, 2016-08-11 07:58

Subject: Re: Can cc's be included in patches sent by send-email
Message-ID: <CA+P7+xpyCQLsEHE-Hqqob5mQisW=aw1gC+5f6Qq3q01etjX2Ng@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2BP7%2BxpyCQLsEHE-Hqqob5mQisW%3Daw1gC%2B5f6Qq3q01etjX2Ng%40mail.gmail.com
In-Reply-To: <D8F2D8316A4C4E198C6847C1165A8811@PhilipOakley>

```
On Thu, Aug 11, 2016 at 12:32 AM, Philip Oakley <philipoakley@iee.org> wrote:
> While 'git send-email' can have multiple --cc="addressee" options on the
> command line, is it possible for the "cc:addressee<a@b.c>" to actually be
> included in the patches that are to be sent, so that different patches can
> have different addressee?
>
> The fortmat-patch can include appropriate from lines, so it feels as if the
> sender should be able to add cc: lines at the same place. Maybe its just
> part of th docs I've missed.
>

Yes, just put them in the body as tags below the signed-off-by. It
should be on by default unless you change supresscc or signedoffbycc
configuration.

Thanks,
Jake

> This is for the workflow where the patch series (including cover letter) is
> reviewed before send-email is invoked to send to all adressees.
>
> --
> Philip
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

```

## Jacob Keller, 2016-08-11 07:59

Subject: Re: Can cc's be included in patches sent by send-email
Message-ID: <CA+P7+xrBegRdS-HXi2SfO0Uu6N=gUVVp_F29GCb1rQn9cnxnHQ@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2BP7%2BxrBegRdS-HXi2SfO0Uu6N%3DgUVVp_F29GCb1rQn9cnxnHQ%40mail.gmail.com
In-Reply-To: <CA+P7+xpyCQLsEHE-Hqqob5mQisW=aw1gC+5f6Qq3q01etjX2Ng@mail.gmail.com>

```
On Thu, Aug 11, 2016 at 12:58 AM, Jacob Keller <jacob.keller@gmail.com> wrote:
> On Thu, Aug 11, 2016 at 12:32 AM, Philip Oakley <philipoakley@iee.org> wrote:
>> While 'git send-email' can have multiple --cc="addressee" options on the
>> command line, is it possible for the "cc:addressee<a@b.c>" to actually be
>> included in the patches that are to be sent, so that different patches can
>> have different addressee?
>>
>> The fortmat-patch can include appropriate from lines, so it feels as if the
>> sender should be able to add cc: lines at the same place. Maybe its just
>> part of th docs I've missed.
>>
>
> Yes, just put them in the body as tags below the signed-off-by. It
> should be on by default unless you change supresscc or signedoffbycc
> configuration.
>
> Thanks,
> Jake
>

See --suppress-cc or --signed-off-by-cc help in git help send-email.

Thanks,
Jake

```

## Junio C Hamano, 2016-08-11 17:57

Subject: Re: Can cc's be included in patches sent by send-email
Message-ID: <xmqq4m6r2npv.fsf@gitster.mtv.corp.google.com>
URL: https://gitlist.dev/e/xmqq4m6r2npv.fsf%40gitster.mtv.corp.google.com
In-Reply-To: <CA+P7+xrBegRdS-HXi2SfO0Uu6N=gUVVp_F29GCb1rQn9cnxnHQ@mail.gmail.com>

```
Jacob Keller <jacob.keller@gmail.com> writes:

> On Thu, Aug 11, 2016 at 12:58 AM, Jacob Keller <jacob.keller@gmail.com> wrote:
>> On Thu, Aug 11, 2016 at 12:32 AM, Philip Oakley <philipoakley@iee.org> wrote:
>>> While 'git send-email' can have multiple --cc="addressee" options on the
>>> command line, is it possible for the "cc:addressee<a@b.c>" to actually be
>>> included in the patches that are to be sent, so that different patches can
>>> have different addressee?
>>>
>>> The fortmat-patch can include appropriate from lines, so it feels as if the
>>> sender should be able to add cc: lines at the same place. Maybe its just
>>> part of th docs I've missed.
>>>
>>
>> Yes, just put them in the body as tags below the signed-off-by. It
>> should be on by default unless you change supresscc or signedoffbycc
>> configuration.
>>
>> Thanks,
>> Jake
>>
>
> See --suppress-cc or --signed-off-by-cc help in git help send-email.

Also, those who do not want to see Cc: in headers (like me) can
instead edit the header part of the format-patch output to add Cc:
lines and they should be picked up.

```

## Junio C Hamano, 2016-08-11 17:58

Subject: Re: Can cc's be included in patches sent by send-email
Message-ID: <CAPc5daWZnSTR8EgTP899+_iDL5JTzi=CT7LkBFnu=Q8puepFFw@mail.gmail.com>
URL: https://gitlist.dev/e/CAPc5daWZnSTR8EgTP899%2B_iDL5JTzi%3DCT7LkBFnu%3DQ8puepFFw%40mail.gmail.com
In-Reply-To: <xmqq4m6r2npv.fsf@gitster.mtv.corp.google.com>

```
On Thu, Aug 11, 2016 at 10:57 AM, Junio C Hamano <gitster@pobox.com> wrote:
>
> Also, those who do not want to see Cc: in headers (like me) can

Stupid typo that ruins the whole message.  I meant "in FOOTERS".

> instead edit the header part of the format-patch output to add Cc:
> lines and they should be picked up.

```

## Philip Oakley, 2016-08-11 18:57

Subject: Re: Can cc's be included in patches sent by send-email
Message-ID: <4AF832719F594FF487BFEFBC9D289942@PhilipOakley>
URL: https://gitlist.dev/e/4AF832719F594FF487BFEFBC9D289942%40PhilipOakley
In-Reply-To: <CA+P7+xrBegRdS-HXi2SfO0Uu6N=gUVVp_F29GCb1rQn9cnxnHQ@mail.gmail.com>

```
From: "Jacob Keller" <jacob.keller@gmail.com>
> On Thu, Aug 11, 2016 at 12:58 AM, Jacob Keller <jacob.keller@gmail.com> 
> wrote:
>> On Thu, Aug 11, 2016 at 12:32 AM, Philip Oakley <philipoakley@iee.org> 
>> wrote:
>>> While 'git send-email' can have multiple --cc="addressee" options on the
>>> command line, is it possible for the "cc:addressee<a@b.c>" to actually 
>>> be
>>> included in the patches that are to be sent, so that different patches 
>>> can
>>> have different addressee?
>>>
>>> The fortmat-patch can include appropriate from lines, so it feels as if 
>>> the
>>> sender should be able to add cc: lines at the same place. Maybe its just
>>> part of th docs I've missed.
>>>
>>
>> Yes, just put them in the body as tags below the signed-off-by. It
>> should be on by default unless you change supresscc or signedoffbycc
>> configuration.
>>
>> Thanks,
>> Jake
>>
>
> See --suppress-cc or --signed-off-by-cc help in git help send-email.
>
> Thanks,
> Jake

Thanks,
I'll look at that. It wasn't immediately obvious what to do.

Philip 


```

## Philip Oakley, 2016-08-11 19:11

Subject: Re: Can cc's be included in patches sent by send-email
Message-ID: <75D9C1DBD21648F0B2511AA183C20CCD@PhilipOakley>
URL: https://gitlist.dev/e/75D9C1DBD21648F0B2511AA183C20CCD%40PhilipOakley
In-Reply-To: <xmqq4m6r2npv.fsf@gitster.mtv.corp.google.com>

```
From: "Junio C Hamano" <gitster@pobox.com>
> Jacob Keller <jacob.keller@gmail.com> writes:
>
>> On Thu, Aug 11, 2016 at 12:58 AM, Jacob Keller <jacob.keller@gmail.com> 
>> wrote:
>>> On Thu, Aug 11, 2016 at 12:32 AM, Philip Oakley <philipoakley@iee.org> 
>>> wrote:
>>>> While 'git send-email' can have multiple --cc="addressee" options on 
>>>> the
>>>> command line, is it possible for the "cc:addressee<a@b.c>" to actually 
>>>> be
>>>> included in the patches that are to be sent, so that different patches 
>>>> can
>>>> have different addressee?
>>>>
>>>> The fortmat-patch can include appropriate from lines, so it feels as if 
>>>> the
>>>> sender should be able to add cc: lines at the same place. Maybe its 
>>>> just
>>>> part of th docs I've missed.
>>>>
>>>
>>> Yes, just put them in the body as tags below the signed-off-by. It
>>> should be on by default unless you change supresscc or signedoffbycc
>>> configuration.
>>>
>>> Thanks,
>>> Jake
>>>
>>
>> See --suppress-cc or --signed-off-by-cc help in git help send-email.
>
> Also, those who do not want to see Cc: in headers (like me) can
> instead edit the header part of the format-patch output to add Cc:
> lines and they should be picked up.
> --
When done via git gui, it looks like the Cc: is also included in the commit 
message (first initial tries)

I'd probably place them after a --- break so that they don't get into the 
applied commit message, but will carry around during my rebasing. I've still 
to test if it works though.

Philip 


```
