Crate git2_hooks
source ·Enums
Constants
Functions
- helper method to create git hooks
- this hook is documented here https://git-scm.com/docs/githooks#_commit_msg we use the same convention as other git clients to create a temp file containing the commit message at
<.git|hooksPath>/COMMIT_EDITMSG
and pass it’s relative path as the only parameter to the hook script. - this hook is documented here https://git-scm.com/docs/githooks#_pre_commit