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
Junio C Hamano <gitster@pobox.com>
Date
May 30, 2011, 19:19 UTC
Message-ID
<7voc2km1xh.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110530141905.GA31490@sigill.intra.peff.net>
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.

It was not optimal in the hindsight to draw the line where the prefix is customizable, while always assuming that people would want some prefix, perhaps.

> So I think we should do this:
Yes, ...
> ... under the assumption that nobody
> actually wants "[ 1/2]".
which I think is a reasonable thing to do.
Will queue; thanks.
Previous: Jeff KingNext: Jeff King
Message 4 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.