aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/githooks.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/githooks.adoc')
-rw-r--r--Documentation/githooks.adoc11
1 files changed, 4 insertions, 7 deletions
diff --git a/Documentation/githooks.adoc b/Documentation/githooks.adoc
index 0397dec64d..056553788d 100644
--- a/Documentation/githooks.adoc
+++ b/Documentation/githooks.adoc
@@ -103,17 +103,14 @@ invoked before obtaining the proposed commit log message and
making a commit. Exiting with a non-zero status from this script
causes the `git commit` command to abort before creating a commit.
-The default 'pre-commit' hook, when enabled, catches introduction
-of lines with trailing whitespaces and aborts the commit when
-such a line is found.
-
All the `git commit` hooks are invoked with the environment
variable `GIT_EDITOR=:` if the command will not bring up an editor
to modify the commit message.
-The default 'pre-commit' hook, when enabled--and with the
-`hooks.allownonascii` config option unset or set to false--prevents
-the use of non-ASCII filenames.
+The default 'pre-commit' hook, when enabled, prevents the introduction
+of non-ASCII filenames and lines with trailing whitespace. The non-ASCII
+check can be turned off by setting the `hooks.allownonascii` config
+option to `true`.
pre-merge-commit
~~~~~~~~~~~~~~~~