threads / discuss / 60415

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

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

## tl;dr

One message between Oct 23, 2023 and Oct 23, 2023.

replies: 0people: 1as markdown or json

matthieu@talbot.audio· Oct 23, 2023, 10:36 UTC · lore
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

← back to recent threads