git format-patch -s enhancement
- From
- jim.cromie@gmail.com <jim.cromie@gmail.com>
- Date
- Aug 15, 2021, 23:07 UTC
- Message-ID
- <CAJfuBxxT_7weC8_O=KYScSbDcSeBdb3v5d_gtn-NXzW_fKLrsA@mail.gmail.com>
hi all
git format-patch -s is sub-optimal : it appends the SoB, which falls after the snips --- changelog ... that the commit message may contain
So it misfires on any maintainer scripts expecting the SoB above the 1st snip.
The workaround is manual SoBs above any snips.
I note this in -s doc,
Add a Signed-off-by trailer to the commit message, using
the committer identity of yourself.
See the signoff option in git-commit(1) for more information."trailer" is really "document current working behavior" (normative docu-speak, so to speak;)
Ideal behavior is to find 1st in-body --- snip and insert there