* How to prepend data when formatting patches ?
@ 2006-11-30 14:16 Francis Moreau
2006-11-30 15:39 ` Johannes Schindelin
2006-11-30 16:00 ` Catalin Marinas
0 siblings, 2 replies; 5+ messages in thread
From: Francis Moreau @ 2006-11-30 14:16 UTC (permalink / raw)
To: git
Hi
I'd like to add to all patchs created by "git-format-patch" command
the following line:
From: xxx.yyy <foo@crazy.com>
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
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to prepend data when formatting patches ?
2006-11-30 14:16 How to prepend data when formatting patches ? Francis Moreau
@ 2006-11-30 15:39 ` Johannes Schindelin
2006-11-30 16:16 ` Francis Moreau
2006-11-30 16:00 ` Catalin Marinas
1 sibling, 1 reply; 5+ messages in thread
From: Johannes Schindelin @ 2006-11-30 15:39 UTC (permalink / raw)
To: Francis Moreau; +Cc: git
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 <foo@crazy.com>
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to prepend data when formatting patches ?
2006-11-30 14:16 How to prepend data when formatting patches ? Francis Moreau
2006-11-30 15:39 ` Johannes Schindelin
@ 2006-11-30 16:00 ` Catalin Marinas
2006-11-30 16:19 ` Francis Moreau
1 sibling, 1 reply; 5+ messages in thread
From: Catalin Marinas @ 2006-11-30 16:00 UTC (permalink / raw)
To: Francis Moreau; +Cc: git
"Francis Moreau" <francis.moro@gmail.com> wrote:
> I'd like to add to all patchs created by "git-format-patch" command
> the following line:
>
> From: xxx.yyy <foo@crazy.com>
In the headers or in the message body? StGIT adds this line
automatically in the message body (and recently only if the sender is
different from the patch author but the templates are flexible and can
be changed).
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to prepend data when formatting patches ?
2006-11-30 15:39 ` Johannes Schindelin
@ 2006-11-30 16:16 ` Francis Moreau
0 siblings, 0 replies; 5+ messages in thread
From: Francis Moreau @ 2006-11-30 16:16 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git
On 11/30/06, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:
> 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 <foo@crazy.com>
>
> 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
--
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to prepend data when formatting patches ?
2006-11-30 16:00 ` Catalin Marinas
@ 2006-11-30 16:19 ` Francis Moreau
0 siblings, 0 replies; 5+ messages in thread
From: Francis Moreau @ 2006-11-30 16:19 UTC (permalink / raw)
To: Catalin Marinas; +Cc: git
Hi
On 11/30/06, Catalin Marinas <catalin.marinas@arm.com> wrote:
> "Francis Moreau" <francis.moro@gmail.com> wrote:
> > I'd like to add to all patchs created by "git-format-patch" command
> > the following line:
> >
> > From: xxx.yyy <foo@crazy.com>
>
> In the headers or in the message body?
Johannes adviced me to use:
[format]
headers = "Organization: git-foo\n"
configuration. And it works both for mail header and message body.
thanks
--
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-11-30 16:19 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-30 14:16 How to prepend data when formatting patches ? Francis Moreau
2006-11-30 15:39 ` Johannes Schindelin
2006-11-30 16:16 ` Francis Moreau
2006-11-30 16:00 ` Catalin Marinas
2006-11-30 16:19 ` Francis Moreau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).