@@ -26,10 +26,7 @@ impl From<git2_hooks::HookResult> for HookResult {
2626 }
2727}
2828
29- /// this hook is documented here <https://git-scm.com/docs/githooks#_commit_msg>
30- /// we use the same convention as other git clients to create a temp file containing
31- /// the commit message at `<.git|hooksPath>/COMMIT_EDITMSG` and pass it's relative path as the only
32- /// parameter to the hook script.
29+ /// see `git2_hooks::hooks_commit_msg`
3330pub fn hooks_commit_msg (
3431 repo_path : & RepoPath ,
3532 msg : & mut String ,
@@ -41,8 +38,7 @@ pub fn hooks_commit_msg(
4138 Ok ( git2_hooks:: hooks_commit_msg ( & repo, None , msg) ?. into ( ) )
4239}
4340
44- /// this hook is documented here <https://git-scm.com/docs/githooks#_pre_commit>
45- ///
41+ /// see `git2_hooks::hooks_pre_commit`
4642pub fn hooks_pre_commit ( repo_path : & RepoPath ) -> Result < HookResult > {
4743 scope_time ! ( "hooks_pre_commit" ) ;
4844
@@ -51,7 +47,7 @@ pub fn hooks_pre_commit(repo_path: &RepoPath) -> Result<HookResult> {
5147 Ok ( git2_hooks:: hooks_pre_commit ( & repo, None ) ?. into ( ) )
5248}
5349
54- ///
50+ /// see `git2_hooks::hooks_post_commit`
5551pub fn hooks_post_commit ( repo_path : & RepoPath ) -> Result < HookResult > {
5652 scope_time ! ( "hooks_post_commit" ) ;
5753
@@ -60,7 +56,7 @@ pub fn hooks_post_commit(repo_path: &RepoPath) -> Result<HookResult> {
6056 Ok ( git2_hooks:: hooks_post_commit ( & repo, None ) ?. into ( ) )
6157}
6258
63- ///
59+ /// see `git2_hooks::hooks_prepare_commit_msg`
6460pub fn hooks_prepare_commit_msg (
6561 repo_path : & RepoPath ,
6662 source : PrepareCommitMsgSource ,
0 commit comments