ericmatthys/grunt-changelog

Use format=%B instead of format=%s as %s collapses newlines

silkentrance opened this issue · 4 comments

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.

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.

Okay, will make a new request that will introduce a config option for controlling this behaviour.