Closed cuixiping closed 7 years ago
It's not possible. See the official documentation. https://git-scm.com/docs/githooks#_pre_commit
Use commit_msg
instead.
https://git-scm.com/docs/githooks#_commit_msg
Feel free to reopen ticket if you have any questions.
how to get file names and message text in pre-commit hook?