tarmolov / git-hooks-js

A tool to manage and run project git hooks
167 stars 30 forks source link

how to get file names and message text in pre-commit hook? #43

Closed cuixiping closed 7 years ago

cuixiping commented 7 years ago

how to get file names and message text in pre-commit hook?

tarmolov commented 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.