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

cherry-pick merge commit with log message populated

From
Mateusz Loskot <mateusz@loskot.net>
Date
Aug 1, 2019, 19:49 UTC
Message-ID
<CABUeae8EBzPSM1KrZTMiGj=6F3iyxeXXbqUNMf2p_LfPkqcfnA@mail.gmail.com>
Hi,

When cherry-picking a merge with `cherry-pick -x -m 1 <SHA>`, is it possible to populate the log message with (short) log of all commits that have been merged by the merge commit <SHA>?

The only workaround to copy the log messages along with cherry-picked changes is to always merge copying all log messages of intermediate commits into merge commit message using `git merge --log feature1`.

Is there any other way, without remembering to `git merge` with `--log`?
Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Next: Junio C Hamano
Message 1 of 3 in “cherry-pick merge commit with log message populated”
  1. Mateusz LoskotAug 1, 2019
  2. Junio C HamanoAug 1, 2019
  3. Mateusz LoskotAug 2, 2019

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.