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

[Git 2.9.2] diff inserted by commit.verbose not removed when rewording

From
TDThijs van Dien <thijs@vandien.net>
Date
Jul 28, 2016, 22:19 UTC
Message-ID
<539E05B5-13A5-4343-9296-19447BE14F14@vandien.net>
I'm just a random Git user, not very familiar with the Git development process and so on, so please by gentle.
Setup:
- OS X 10.11.6
- Git 2.9.2 via Homebrew
Curiosity triggered me to enable 'commit.verbose' globally with 'git config --global commit.verbose true'. I have not configured it on the repo. It works as expected when committing; the diff is appended to the commit message template, yet doesn't make it into the commit when untouched. Today I noticed that when I then rebase interactively ('git rebase -i HEAD~2'; whatever) and reword a specific commit, the diff that is appended then is _not_ removed and _does_ make it into the commit. The template looks OK ('------------------------ >8 ------------------------' and so on is there) but it seems that the logic to actually cut along that line is not executed then.
I'm not sure what more I can say about it.
Message 1 of 1 in “[Git 2.9.2] diff inserted by commit.verbose not removed when rewording”
  1. Thijs van DienJul 28, 2016

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.