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

commit-msg hook with verbose commit flag

From
GGaveUp <gaveup@gaveup.net>
Date
Sep 21, 2017, 17:50 UTC
Message-ID
<20170921175017.GR1557@sunnydale2.internal.pylea.com>

When using the --verbose flag on git-commit with a commit-msg hook the contents of the diff are passed to the commit-msg hook. I would have expected the diff to have been removed since it's below the scissor line. Since the scissor line is removed and not visible to commit-msg there doesn't seem to be a great way to ignore the diff contents either.

Message 1 of 1 in “commit-msg hook with verbose commit flag”
  1. GaveUpSep 21, 2017

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.