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

BUG: 'cherry-pick -x' corner case

From
EREric Raible <raible@nextest.com>
Date
Jun 24, 2011, 21:54 UTC
Message-ID
<4E0507A9.7090000@nextest.com>

When cherry-picking a (presumably trivial) commit that has only the one-line summary (and no further text), cherry-pick -x appends it's message directly to the one-line summary.

Thereby creating a commit which has a two-line summary.

Aside from that, even with a non-trivial commit the generated note "(cherry picked from commit 555c9864971744abb558796aea28e12a1ac20839)" seems abrupt when appended directly.

I'd suggest:
"\n[cherry-picked from commit 555c9864971744abb558796aea28e12a1ac20839]"
or even better:
"\n[cherry-picked from commit 555c986]"
I'll turn this into an actual patch if there's a chance of it being incorporated.
- Eric
Message 1 of 1 in “BUG: 'cherry-pick -x' corner case”
  1. Eric RaibleJun 24, 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.