Function hooks_commit_msg

Source
pub fn hooks_commit_msg(
    repo: &Repository,
    other_paths: Option<&[&str]>,
    msg: &mut String,
) -> Result<HookResult, HooksError>
Expand description

Git hook: commit_msg

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.