commit-msg hook possible bad behavior with -F <file>
- From
- Seth Raymond <seth.c.raymond@gmail.com>
- Date
- Dec 18, 2017, 16:43 UTC
- Message-ID
- <CAJ4+5mHMD+yW1ZDD6KJSnMtyygLUGiHzNPgPDZUi7+KUvOczkg@mail.gmail.com>
If a commit is invoked with -F <file>, 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 <file>. The first argument to the hook is always <git_repo>/COMMIT_EDITMSG, rather than <file>.
Am I wrong in this line of thinking?
-Seth