* git send-email: How to modify subject prefix?
@ 2009-04-24 15:18 Constantine Plotnikov
2009-04-24 15:20 ` Michael Witten
2009-04-24 15:22 ` Shawn O. Pearce
0 siblings, 2 replies; 7+ messages in thread
From: Constantine Plotnikov @ 2009-04-24 15:18 UTC (permalink / raw)
To: git
I'm interested how to modify subject prefix when sending patches using
git send-email. I want it to prefix the subject with [JGIT PATCH]
instead of [PATCH] and I have not found any option that allows it.
Regards,
Constantine
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git send-email: How to modify subject prefix?
2009-04-24 15:18 git send-email: How to modify subject prefix? Constantine Plotnikov
@ 2009-04-24 15:20 ` Michael Witten
2009-04-24 15:23 ` Michael Witten
2009-04-24 15:28 ` Constantine Plotnikov
2009-04-24 15:22 ` Shawn O. Pearce
1 sibling, 2 replies; 7+ messages in thread
From: Michael Witten @ 2009-04-24 15:20 UTC (permalink / raw)
To: Constantine Plotnikov; +Cc: git
On Fri, Apr 24, 2009 at 10:18, Constantine Plotnikov
<constantine.plotnikov@gmail.com> wrote:
> I'm interested how to modify subject prefix when sending patches using
> git send-email. I want it to prefix the subject with [JGIT PATCH]
> instead of [PATCH] and I have not found any option that allows it.
The option is format-patch's --subject-prefix
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git send-email: How to modify subject prefix?
2009-04-24 15:18 git send-email: How to modify subject prefix? Constantine Plotnikov
2009-04-24 15:20 ` Michael Witten
@ 2009-04-24 15:22 ` Shawn O. Pearce
1 sibling, 0 replies; 7+ messages in thread
From: Shawn O. Pearce @ 2009-04-24 15:22 UTC (permalink / raw)
To: Constantine Plotnikov; +Cc: git
Constantine Plotnikov <constantine.plotnikov@gmail.com> wrote:
> I'm interested how to modify subject prefix when sending patches using
> git send-email. I want it to prefix the subject with [JGIT PATCH]
> instead of [PATCH] and I have not found any option that allows it.
Here's how I send email, the trick is to set the subject on
format-patch not on send-email:
_sop/dump.sh
--8<--
base="${1:-master}" &&
if [ $(git rev-list ^$base HEAD | wc -l) -gt 1 ]
then
n="--numbered --cover-letter"
fi &&
git format-patch \
--output-directory _sop/OUT \
--subject-prefix='JGIT PATCH' \
-M \
$n \
$base || exit
----
_sop/send.sh
--8<--
git send-email \
--to 'Robin Rosenberg <robin.rosenberg@dewire.com>' \
--cc 'git@vger.kernel.org' \
--chain-reply-to \
--suppress-cc self \
--smtp-server localhost \
--smtp-server-port 8025 \
_sop/OUT
----
--
Shawn.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git send-email: How to modify subject prefix?
2009-04-24 15:20 ` Michael Witten
@ 2009-04-24 15:23 ` Michael Witten
2009-04-24 15:28 ` Constantine Plotnikov
1 sibling, 0 replies; 7+ messages in thread
From: Michael Witten @ 2009-04-24 15:23 UTC (permalink / raw)
To: Constantine Plotnikov; +Cc: git
On Fri, Apr 24, 2009 at 10:20, Michael Witten <mfwitten@gmail.com> wrote:
> On Fri, Apr 24, 2009 at 10:18, Constantine Plotnikov
> <constantine.plotnikov@gmail.com> wrote:
>> I'm interested how to modify subject prefix when sending patches using
>> git send-email. I want it to prefix the subject with [JGIT PATCH]
>> instead of [PATCH] and I have not found any option that allows it.
>
> The option is format-patch's --subject-prefix
>
Looking at the source for send-email, it would appear you can do the
following if you don't want to run format-patch separately:
git send-email $send_email_args -- $format_patch_args
That should be documented!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git send-email: How to modify subject prefix?
2009-04-24 15:20 ` Michael Witten
2009-04-24 15:23 ` Michael Witten
@ 2009-04-24 15:28 ` Constantine Plotnikov
2009-04-24 15:32 ` Michael Witten
1 sibling, 1 reply; 7+ messages in thread
From: Constantine Plotnikov @ 2009-04-24 15:28 UTC (permalink / raw)
To: git
This option works. Thank you.
BTW why this option is not in the man page? Is it discouraged for use?
On Fri, Apr 24, 2009 at 7:20 PM, Michael Witten <mfwitten@gmail.com> wrote:
> On Fri, Apr 24, 2009 at 10:18, Constantine Plotnikov
> <constantine.plotnikov@gmail.com> wrote:
>> I'm interested how to modify subject prefix when sending patches using
>> git send-email. I want it to prefix the subject with [JGIT PATCH]
>> instead of [PATCH] and I have not found any option that allows it.
>
> The option is format-patch's --subject-prefix
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git send-email: How to modify subject prefix?
2009-04-24 15:28 ` Constantine Plotnikov
@ 2009-04-24 15:32 ` Michael Witten
2009-04-24 15:34 ` Michael Witten
0 siblings, 1 reply; 7+ messages in thread
From: Michael Witten @ 2009-04-24 15:32 UTC (permalink / raw)
To: Constantine Plotnikov; +Cc: git
On Fri, Apr 24, 2009 at 10:28, Constantine Plotnikov
<constantine.plotnikov@gmail.com> wrote:
> This option works. Thank you.
>
> BTW why this option is not in the man page? Is it discouraged for use?
The option --subject-prefix is documented in format-patch's man page
(it is an option of format-patch, after all :-D).
However, using '--' with send-email to pass along arguments to a call
to format-patch is not documented in send-email's man page, and it
should be.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: git send-email: How to modify subject prefix?
2009-04-24 15:32 ` Michael Witten
@ 2009-04-24 15:34 ` Michael Witten
0 siblings, 0 replies; 7+ messages in thread
From: Michael Witten @ 2009-04-24 15:34 UTC (permalink / raw)
To: Constantine Plotnikov; +Cc: git
On Fri, Apr 24, 2009 at 10:32, Michael Witten <mfwitten@gmail.com> wrote:
> The option --subject-prefix is documented in format-patch's man page
> (it is an option of format-patch, after all :-D).
>
> However, using '--' with send-email to pass along arguments to a call
> to format-patch is not documented in send-email's man page, and it
> should be.
I should add that I don't really like it though; it seems that it
makes the relationship to format-patch a little to close and implicit.
I would think that --format-patch-args would be better.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2009-04-24 15:36 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-24 15:18 git send-email: How to modify subject prefix? Constantine Plotnikov
2009-04-24 15:20 ` Michael Witten
2009-04-24 15:23 ` Michael Witten
2009-04-24 15:28 ` Constantine Plotnikov
2009-04-24 15:32 ` Michael Witten
2009-04-24 15:34 ` Michael Witten
2009-04-24 15:22 ` Shawn O. Pearce
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.