# cherry-pick merge commit with log message populated

3 messages from 2019-08-01 to 2019-08-02. Participants: Mateusz Loskot, Junio C Hamano.
Thread: https://gitlist.dev/t/51569

## Mateusz Loskot, 2019-08-01 19:49

Subject: cherry-pick merge commit with log message populated
Message-ID: <CABUeae8EBzPSM1KrZTMiGj=6F3iyxeXXbqUNMf2p_LfPkqcfnA@mail.gmail.com>
URL: https://gitlist.dev/e/CABUeae8EBzPSM1KrZTMiGj%3D6F3iyxeXXbqUNMf2p_LfPkqcfnA%40mail.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

```

## Junio C Hamano, 2019-08-01 20:24

Subject: Re: cherry-pick merge commit with log message populated
Message-ID: <xmqqr264my73.fsf@gitster-ct.c.googlers.com>
URL: https://gitlist.dev/e/xmqqr264my73.fsf%40gitster-ct.c.googlers.com
In-Reply-To: <CABUeae8EBzPSM1KrZTMiGj=6F3iyxeXXbqUNMf2p_LfPkqcfnA@mail.gmail.com>

```
Mateusz Loskot <mateusz@loskot.net> writes:

> Is there any other way, without remembering to `git merge` with `--log`?

"git config merge.log true"?

```

## Mateusz Loskot, 2019-08-02 15:17

Subject: Re: cherry-pick merge commit with log message populated
Message-ID: <20190802151742.bsxugrfxd6kxspfn@DEV747.cadcorp.net>
URL: https://gitlist.dev/e/20190802151742.bsxugrfxd6kxspfn%40DEV747.cadcorp.net
In-Reply-To: <xmqqr264my73.fsf@gitster-ct.c.googlers.com>

```
On 19-08-01 13:24:00, Junio C Hamano wrote:
>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

```
