From: Eric Sunshine Date: Mon, 18 Dec 2017 18:31:10 GMT Subject: Re: commit-msg hook possible bad behavior with -F Message-ID: In-Reply-To: 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, rather > than . > > Am I wrong in this line of thinking? The content of gets copied into COMMIT_EDITMSG, so the hook does see the supplied message, as expected. Given that the hook is allowed to edit the message, it makes sense that it works on COMMIT_EDITMSG rather than on directly.