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

Re: [PATCH] trailer: fix comment/cut-line regression with opts->no_divider

From
LALinus Arver <linusa@google.com>
Date
Mar 8, 2024, 02:21 UTC
Message-ID
<owlyfrx14g63.fsf@fine.c.googlers.com>
In-Reply-To
<20240220010936.GA1793660@coredump.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
> On Mon, Feb 19, 2024 at 10:42:45AM -0800, Junio C Hamano wrote:
> [...]
>
> The fix itself is pretty simple: instead of returning early, no_divider
> just skips the "---" handling but still calls ignored_log_message_bytes().

I realize I am late to the discussion, but this fix (and patch) looks right to me. FWIW I independently discovered the same problem and figured out a fix locally in my larger refactor of this area (with the same fix, to always call ignored_log_message_bytes() regardless of no_divider). Thank you Peff!

Sorry for introducing the regression. My enthusiasm in changing things up without unit tests is regrettable.

Previous: Junio C Hamano
Message 9 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.