threads / discuss / 46804

commit-msg hook with verbose commit flag

Subject: commit-msg hook with verbose commit flag

## tl;dr

One message between Sep 21, 2017 and Sep 21, 2017.

replies: 0people: 1as markdown or json

GaveUp· Sep 21, 2017, 17:50 UTC · lore

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.

← back to recent threads