Struggling with git (format-patch & send-email)
Prasant J
pj0585 at gmail.com
Wed Mar 8 23:09:02 EST 2017
On Thu, Mar 9, 2017 at 1:47 AM, Greg KH <greg at kroah.com> wrote:
> On Wed, Mar 08, 2017 at 11:05:35PM +0530, Prasant J wrote:
>> Hi,
>>
>> I want to send my 2 commits as patches in chain reply to my first
>> email. My first email will have multiple files as attachment. How can
>> I achieve it?
>>
>> first email subject: [mystring] Feature 01
>> patch 01: |_ [mystring] [PATCH 01/02] My commit msg 1
>> patch 02: |_ [mystring] [PATCH 02/02] My commit msg 2
>>
>>
>> My git send-email is working, but I want to achieve the above desired
>> outcome which I'm unable to.
>>
>> I have tried so many combinations of git format-patch and send-email
>> over the past days but I'm unable to get the above outcome.
>>
>> One combination that was close to working:
>> => git format-patch -2 --numbered --start-number 01 -o patch-dir --thread
>> => git send-email --in-reply-to="Message-Id" --to user at gmail.com
>> --chain-reply-to --suppress-cc=self patch-dir/*
>>
>> I'm trying to see the desired effect in my web gmail, but I do not see.
>
> gmail does not show threading like this, you are going to have to use
> another mail client that will show the threading properly, to be able to
> see if you did it correctly or not.
>
> good luck!
@Greg:
Thanks for response, that helped partially. Thunderbird shows threaded mails.
But chain-reply-to does not seem to work, or may be thunderbird is not
showing as expected or my understanding is wrong.
In Thunderbird I see as follows:
>> first email subject: [mystring] Feature 01
>> patch 01: |_ [mystring] [PATCH 01/02] My commit msg 1
>> patch 02: |_ [mystring] [PATCH 02/02] My commit msg 2
Both patches are seen as response to first email.
Below is the Mail header when I do chain-reply:
Lets say, First Mail: Message-Id => <Message-ABC-1>
after git send-email, the header for the patches is as follows:
Patch 1:
Message-Id => <Message-Git-1>
In-Reply-to => <Message-ABC-1>
References => <Message-ABC-1>
Patch 2:
Message-Id => <Message-Git-2>
In-Reply-to => <Message-Git-1>
References => <Message-ABC-1> <Message-Git-1>
* Do the above headers look as expected & correct? If yes, then my
thunderbird is not showing properly or my understanding is wrong.
* Why in Patch 2 "References" <Message-ABC-1> prepended? (That should
not be the case in chaining.. am I right?)
Thanks & regards, Pj
More information about the Kernelnewbies
mailing list