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

malformed commit messages for git version 2.42.0 when "commit.verbose true"

From
Mmatthieu@talbot.audio <matthieu@talbot.audio>
Date
Oct 23, 2023, 10:36 UTC
Message-ID
<9a72287d979a0bd9dce390478d8522139646fb4e@talbot.audio>
Hello,
I recently set the option `commit.verbose` to `true` for git version 2.42.0, and I really like it.

However, most of the time, commits are malformed if I don’t remove the diff after the marker `# ------------------------ >8 ------------------------`

I would expect that anything after the marker is automatically removed by git, or could it be that some pre-commit script see the raw commit message before it is cleaned-up by git itself?

Best, Matthieu

Message 1 of 1 in “malformed commit messages for git version 2.42.0 when "commit.verbose true"”
  1. matthieu@talbot.audioOct 23, 2023

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.