Description
Lines 156 to 166 in 782e29c
Consider this example:
This is a commit message
---
I have more to say here.
Acked-By: General Ackbar <[email protected]>
git_message_trailers
does not pick up on the Acked-By
trailer whereas git rev-list --format=%(trailers)
will. It's notable that git_message_trailers
does agree with git-interpret-trailers --divider
, but there is no flag to emulate the behavior of --no-divider
.
It is possible to work-around this by pre-processing the message to omit the ---
line, but this requires a regex match/replace (+ string allocation) unless you get fancy with the char *
itself, moving it past the last ---
. It would be far nicer if there were options that could be passed to git_message_trailers
to simply manipulate this block:
Lines 263 to 265 in 782e29c