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

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

From
FDFrédéric Delanoy <frederic.delanoy@gmail.com>
Date
May 28, 2011, 21:57 UTC
Message-ID
<BANLkTikVQWN2kZ4gc8kd-kJWZhLXgkvTAA@mail.gmail.com>
Hi,

I'm trying to generate numbered patches using git-format-patch such that I get e.g. [1/2] instead of [PATCH 1/2]

However, if I use an empty string as prefix, for instance in
git-format-patch --subject-prefix="" -2

an extraneous space is inserted, and I get [ 1/2] instead of desired [1/2] in the Subject line

(I also tried using a single backspace char as prefix, but that didn't change anything, as might have been expected)

Is there a way to get rid of this space? IMO the space should only be added if the prefix is non-empty

Frédéric Delanoy
Next: Frédéric Delanoy
Message 1 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.