git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git format-patch -s enhancement

From
Jjim.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

Next: Bagas Sanjaya
Message 1 of 4 in “git format-patch -s enhancement”
  1. jim.cromie@gmail.comAug 15, 2021
  2. Bagas SanjayaAug 16, 2021
  3. Jeff KingAug 16, 2021
  4. jim.cromie@gmail.comAug 16, 2021

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.