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

cherry-pick -x formats the message incorrectly

From
MSMartin Svensson <martin.k.svensson@netinsight.se>
Date
Nov 16, 2010, 09:14 UTC
Message-ID
<loom.20101116T100730-967@post.gmane.org>
Hello,

I have a problem with the commit message format for "cherry-pick -x": Given a commit with the message:

  foo

, i.e. with only a summary part, I do "git cherry-pick -x the_commit". The result is a new commit with message

  foo
  (cherry picked from commit eb42a6475d2c2e4fff7a1b626ce6e27eec21e886)

Now that's not good, because it is a two-line summary. In my opinion, the parentheses should _always_ end up in the detailed part. It should be:

  foo
  
  (cherry picked from commit eb42a6475d2c2e4fff7a1b626ce6e27eec21e886)
Am I right?
/Martin Svensson, SW Developer
Next: Junio C Hamano
Message 1 of 4 in “cherry-pick -x formats the message incorrectly”
  1. Martin SvenssonNov 16, 2010
  2. Junio C HamanoNov 16, 2010
  3. Jonathan NiederNov 16, 2010
  4. Jonathan NiederNov 16, 2010

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.