How to prepend data when formatting patches ?

3 messages, 2 authors, 2016-08-11 · open the first message on its own page

How to prepend data when formatting patches ?

From: Francis Moreau <hidden>
Date: 2016-08-11 20:03:04

Hi

I'd like to add to all patchs created by "git-format-patch" command
the following line:

        From: xxx.yyy [off-list ref]

I took a look to the command options and git's hooks but I don't find
a solution to this problem.

Is there any tricks to do this ?

thanks
-- 

Re: How to prepend data when formatting patches ?

From: Johannes Schindelin <hidden>
Date: 2016-08-11 19:33:39

Hi,

On Thu, 30 Nov 2006, Francis Moreau wrote:
I'd like to add to all patchs created by "git-format-patch" command
the following line:

       From: xxx.yyy [off-list ref]
From Documentation/git-format-patch.txt:

-- snip --

CONFIGURATION
-------------
You can specify extra mail header lines to be added to each
message in the repository configuration as follows:

[format]
        headers = "Organization: git-foo\n"

-- snap --

Hth,
Dscho

Re: How to prepend data when formatting patches ?

From: Francis Moreau <hidden>
Date: 2016-08-11 19:41:09

On 11/30/06, Johannes Schindelin [off-list ref] wrote:
Hi,

On Thu, 30 Nov 2006, Francis Moreau wrote:
quoted
I'd like to add to all patchs created by "git-format-patch" command
the following line:

       From: xxx.yyy [off-list ref]
From Documentation/git-format-patch.txt:

-- snip --

CONFIGURATION
-------------
You can specify extra mail header lines to be added to each
message in the repository configuration as follows:
I stupily thought that it couldn't be used to prepend message for the
message body. But since it appends the line at the end of mail header,
it does the right thing for me.

Thanks for your quick answer
-- 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help