Re: Struggling with git (format-patch & send-email)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 9, 2017 at 4:33 AM, Jim Davis <jim.epost@xxxxxxxxx> wrote:
> On Wed, Mar 8, 2017 at 10:35 AM, Prasant J <pj0585@xxxxxxxxx> 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@xxxxxxxxx
>> --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.
>
> If you don't have access to something like mutt or thunderbird that
> can show you threads, then you may have to mail it to yourself and try
> the 'show original' option and look at the References: header to check
> that you have the results you'd like to see.
>
> Yes, that's painful.

I use mutt only to send emails.

>>
>>
>> * What am I doing wrong? Any inputs will be of help!
>> * How to add subject prefix? (subject-prefix of git format-patch is
>> not working as above)
>> * How to get 2 digit patch number? I'm getting PATCH 1/2 instead of PATCH 01/02
>
> Well, one way is to use --subject-prefix="PATCH 01/02" --no-numbered
> arguments to format-patch.  But then you'd have to write a shell loop
> of some sort to process each patch, instead of having format-patch do
> that for you.
>

So, If I understand correct
* there is no way to prefix subject with "[mystring]" directly from
git it has to be done manually.
* there is no way to make the numbers 2 digit stuffed with '0'
directly from git.

Thanks for inputs Jim!

Regards, Pj

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux