Re: commit-msg hook mistakes commit -v unified diff for part of the message

2012-03-24 Thread Miklos Vajna
Hi Will, On Thu, Mar 22, 2012 at 11:31:41AM +, Will Thompson wrote: > I don't know whether it's possible to tweak something so that the > hook receives the message without the unified diff; otherwise, > perhaps the hook should stop reading lines past something which > looks like a unified di

commit-msg hook mistakes commit -v unified diff for part of the message

2012-03-22 Thread Will Thompson
Hi, git commit takes a --verbose option, defined as follows: -v, --verbose Show unified diff between the HEAD commit and what would be committed at the bottom of the commit message template. Note that this diff output doesn’t have its lines prefixed wit