Re: commit-msg hook possible bad behavior with -F

2017-12-18 Thread Seth Raymond
I see that line of thinking, and agree that it makes sense. I'm having problems with an IDE (Qt Creator) and I think I know where the problem lies now. I believe Qt Creator doesn't actually call git commit until after the user generates a message in the message box, meaning my prepare-commit-msg ho

Re: commit-msg hook possible bad behavior with -F

2017-12-18 Thread Eric Sunshine
On Mon, Dec 18, 2017 at 11:43 AM, Seth Raymond wrote: > If a commit is invoked with -F , indicating that the commit > message should be read from an existing file, the the > prepare-commit-msg and commit-msg hooks do not operate on . The > first argument to the hook is always /COMMIT_EDITMSG, rath

commit-msg hook possible bad behavior with -F

2017-12-18 Thread Seth Raymond
If a commit is invoked with -F , indicating that the commit message should be read from an existing file, the the prepare-commit-msg and commit-msg hooks do not operate on . The first argument to the hook is always /COMMIT_EDITMSG, rather than . Am I wrong in this line of thinking? -Seth