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

Shouldn't git-am be able to pass -b to git-mailinfo?

From
JWJan Winkler <winkler@pinerecords.com>
Date
Jul 15, 2011, 00:22 UTC
Message-ID
<20110715002206.GA19234@louise.pinerecords.com>
Hi,

I've been wondering: git-am can pass -k to git-mailinfo, but not -b. It's thus impossible to preserve a commitmsg starting with a bracketed text.

Consider a commitmsg starting with '[ISSUE-1234] Fix breakage in XY.' git format-patch produces:

    ...
    Subject: [PATCH] [ISSUE-1234] Fix breakage in XY.
    ...

Applying this patch using git-am results in commit message starting either with

    Fix breakage...
or, using git-am -k, with
    [PATCH] [ISSUE-1234] Fix...

However, there is no way to get the original commit message using git-am's interface. Or am I missing something?

I'd supply a patch straight away, however, I can't think of a long version of -b option to go well with -k/--keep. Any ideas?

-- 
Jan Winkler <winkler@pinerecords.com>
Message 1 of 1 in “Shouldn't git-am be able to pass -b to git-mailinfo?”
  1. Jan WinklerJul 15, 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.