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

Re: Using really empty start prefixes for git-format-patch numbered patches?

From
Jeff King <peff@peff.net>
Date
May 30, 2011, 20:23 UTC
Message-ID
<20110530202302.GA29811@sigill.intra.peff.net>
In-Reply-To
<7voc2km1xh.fsf@alter.siamese.dyndns.org>
On Mon, May 30, 2011 at 12:19:22PM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > I don't think there is currently a way to do what you want short of
> > post-processing the output of format-patch. You can use "-k" to preserve
> > the subject, but then you don't get the "1/2" that you want.
> 
> You would unconditionally get "[" and "]" that you may or may not want and
> there is no way to change it to "(1/2)" or "1 of 2: "; unless we shoot for
> a completely flexible solution, we need to draw a line somewhere.
Hmm, yeah, I guess we could go farther pretty simply with:
  git format-patch --subject='[PATCH %n/%m] %s'
but I admit I don't really care enough to work on it. :)
> Will queue; thanks.
Thanks.
-Peff
Previous: Junio C Hamano
Message 5 of 5 in “Using really empty start prefixes for git-format-patch numbered patches?”
  1. Frédéric DelanoyMay 28, 2011
  2. Frédéric DelanoyMay 30, 2011
  3. Jeff KingMay 30, 2011
  4. Junio C HamanoMay 30, 2011
  5. Jeff KingMay 30, 2011

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.