git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git send-email: How to modify subject prefix?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 24, 2009, 15:22 UTC
Message-ID
<20090424152227.GY23604@spearce.org>
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.
Previous: Michael Witten
Message 7 of 7 in “git send-email: How to modify subject prefix?”
  1. Constantine PlotnikovApr 24, 2009
  2. Michael WittenApr 24, 2009
  3. Michael WittenApr 24, 2009
  4. Constantine PlotnikovApr 24, 2009
  5. Michael WittenApr 24, 2009
  6. Michael WittenApr 24, 2009
  7. Shawn O. PearceApr 24, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.