@@ -26,10 +26,7 @@ impl From<git2_hooks::HookResult> for HookResult {
26
26
}
27
27
}
28
28
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`
33
30
pub fn hooks_commit_msg (
34
31
repo_path : & RepoPath ,
35
32
msg : & mut String ,
@@ -41,8 +38,7 @@ pub fn hooks_commit_msg(
41
38
Ok ( git2_hooks:: hooks_commit_msg ( & repo, None , msg) ?. into ( ) )
42
39
}
43
40
44
- /// this hook is documented here <https://git-scm.com/docs/githooks#_pre_commit>
45
- ///
41
+ /// see `git2_hooks::hooks_pre_commit`
46
42
pub fn hooks_pre_commit ( repo_path : & RepoPath ) -> Result < HookResult > {
47
43
scope_time ! ( "hooks_pre_commit" ) ;
48
44
@@ -51,7 +47,7 @@ pub fn hooks_pre_commit(repo_path: &RepoPath) -> Result<HookResult> {
51
47
Ok ( git2_hooks:: hooks_pre_commit ( & repo, None ) ?. into ( ) )
52
48
}
53
49
54
- ///
50
+ /// see `git2_hooks::hooks_post_commit`
55
51
pub fn hooks_post_commit ( repo_path : & RepoPath ) -> Result < HookResult > {
56
52
scope_time ! ( "hooks_post_commit" ) ;
57
53
@@ -60,7 +56,7 @@ pub fn hooks_post_commit(repo_path: &RepoPath) -> Result<HookResult> {
60
56
Ok ( git2_hooks:: hooks_post_commit ( & repo, None ) ?. into ( ) )
61
57
}
62
58
63
- ///
59
+ /// see `git2_hooks::hooks_prepare_commit_msg`
64
60
pub fn hooks_prepare_commit_msg (
65
61
repo_path : & RepoPath ,
66
62
source : PrepareCommitMsgSource ,
0 commit comments