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
FDFrédéric Delanoy <frederic.delanoy@gmail.com>
Date
May 30, 2011, 13:04 UTC
Message-ID
<BANLkTikUECxikNKmYX1qoXvz1xmYRRtfUg@mail.gmail.com>
In-Reply-To
<BANLkTikVQWN2kZ4gc8kd-kJWZhLXgkvTAA@mail.gmail.com>
Is this a bug or a feature?
2011/5/28 Frédéric Delanoy <frederic.delanoy@gmail.com>:
Show 20 quoted lines
> 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
>
Previous: Frédéric DelanoyNext: Jeff King
Message 2 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.