From: "Shawn O. Pearce" <spearce@spearce•org>
To: Constantine Plotnikov <constantine.plotnikov@gmail•com>
Cc: git@vger•kernel.org
Subject: Re: git send-email: How to modify subject prefix?
Date: Fri, 24 Apr 2009 08:22:27 -0700 [thread overview]
Message-ID: <20090424152227.GY23604@spearce.org> (raw)
In-Reply-To: <85647ef50904240818s41fffc2eh798083a24ab53750@mail.gmail.com>
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.
prev parent reply other threads:[~2009-04-24 15:24 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090424152227.GY23604@spearce.org \
--to=spearce@spearce$(echo .)org \
--cc=constantine.plotnikov@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox