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

[BUG] git commit --trailer --verbose puts trailer below scissors line

From
Philippe Blain <levraiphilippeblain@gmail.com>
Date
Feb 16, 2024, 21:04 UTC
Message-ID
<8b4738ad-62cd-789e-712e-bd45a151b4ac@gmail.com>
Hello,
I've just found a bug in the current master: running
	git commit --trailer="key: value" --verbose

puts the trailer below the diff, and thus below the scissors line (and so it is discarded).

I checked that it works OK in 2.42.1 but not in 2.43.2 so it is not a new regression in the 2.44 cycle, but I thought I'd write now in case someone spots the culprit commit faster than me.

I'll start a bisection now.
Cheers,
Philippe.
Next: Junio C Hamano
Message 1 of 9 in “[BUG] git commit --trailer --verbose puts trailer below scissors line”
  1. Philippe BlainFeb 16, 2024
  2. Junio C HamanoFeb 16, 2024
  3. Linus ArverFeb 16, 2024
  4. Jeff KingFeb 17, 2024
  5. Philippe BlainFeb 19, 2024
  6. Junio C HamanoFeb 19, 2024
  7. trailer: fix comment/cut-line regression with opts->no_dividerJeff King, Feb 20, 2024
  8. Junio C HamanoFeb 20, 2024
  9. Linus ArverMar 8, 2024

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.