pub fn run_commit_hook(
repo: &Repository,
hook_name: &str,
args: &[&str],
stdin_data: Option<&[u8]>,
commit_env: &CommitHookEnv<'_>,
) -> Result<HookResult, String>Expand description
Run commit-style hooks with GIT_INDEX_FILE, GIT_PREFIX, and related env (Git run_commit_hook).