threads / discuss / 51569

cherry-pick merge commit with log message populated

Subject: cherry-pick merge commit with log message populated

## tl;dr

3 messages between Aug 1, 2019 and Aug 2, 2019.

replies: 2people: 2as markdown or json

Mateusz Loskot· Aug 1, 2019, 19:49 UTC · lore
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
Mateusz Loskot· Aug 2, 2019, 15:17 UTC · re: Junio C Hamano · lore

Re: cherry-pick merge commit with log message populated

On 19-08-01 13:24:00, Junio C Hamano wrote:
Show 5 quoted lines
>Mateusz Loskot <mateusz@loskot.net> writes:
>
>> Is there any other way, without remembering to `git merge` with `--log`?
>
>"git config merge.log true"?
That's sweet! Thank you
Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net
Fingerprint=C081 EA1B 4AFB 7C19 38BA  9C88 928D 7C2A BB2A C1F2

← back to recent threads