Use format=%B instead of format=%s as %s collapses newlines
silkentrance opened this issue · 4 comments
silkentrance commented
Having a commit message like so
- added X
- removed Y
using git --pretty=format:%s will collapse existing lines into a single line like so
- added X - removed Y
Using %B instead will preserve the original layout of the commit message.
ericmatthys commented
This should probably be configurable. %s
just includes the subject, while %B
includes both the subject and body. I think many users do not want the entire body of their commit message in the changelog when the subject is enough.
ericmatthys commented
silkentrance commented
Okay, will make a new request that will introduce a config option for controlling this behaviour.
mischah commented
No need for that. We are much more flexible with the new option logArguments
.
See: