X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Documentation%2Fhooks.txt;h=57f47208716fd1f51f40d8d8104b4e764e0a013d;hb=0de68d28d34f915951324b9f387e6e67172e9951;hp=45809ba13ae6ee2ae120e002f126732918ceac8e;hpb=6d35cc76909512d386b503a3feb1b40c153c3195;p=git.git diff --git a/Documentation/hooks.txt b/Documentation/hooks.txt index 45809ba1..57f47208 100644 --- a/Documentation/hooks.txt +++ b/Documentation/hooks.txt @@ -56,11 +56,11 @@ the outcome of `git-applypatch`. pre-commit ---------- -This hook is invoked by `git-commit-script`, and can be bypassed -with `--no-verify` option. It takes no parameter, and is +This hook is invoked by `git-commit`, and can be bypassed +with `\--no-verify` option. It takes no parameter, and is invoked before obtaining the proposed commit log message and making a commit. Exiting with non-zero status from this script -causes the `git-commit-script` to abort. +causes the `git-commit` to abort. The default pre-commit hook, when enabled, catches introduction of lines with trailing whitespaces and aborts the commit when @@ -69,10 +69,10 @@ a such line is found. commit-msg ---------- -This hook is invoked by `git-commit-script`, and can be bypassed -with `--no-verify` option. It takes a single parameter, the +This hook is invoked by `git-commit`, and can be bypassed +with `\--no-verify` option. It takes a single parameter, the name of the file that holds the proposed commit log message. -Exiting with non-zero status causes the `git-commit-script` to +Exiting with non-zero status causes the `git-commit` to abort. The hook is allowed to edit the message file in place, and can @@ -86,11 +86,11 @@ Signed-off-by: lines, and aborts the commit when one is found. post-commit ----------- -This hook is invoked by `git-commit-script`. It takes no +This hook is invoked by `git-commit`. It takes no parameter, and is invoked after a commit is made. This hook is meant primarily for notification, and cannot affect -the outcome of `git-commit-script`. +the outcome of `git-commit`. The default post-commit hook, when enabled, demonstrates how to send out a commit notification e-mail.