aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/githooks.txt
diff options
context:
space:
mode:
authorRobert P. J. Day <rpjday@crashcourse.ca>2019-02-20 02:53:54 -0500
committerJunio C Hamano <gitster@pobox.com>2019-02-21 09:41:21 -0800
commit3e14dd2c8e9bc3b4bd2fb8197db6fe47133815cb (patch)
treebd5657d3a2c84187752271b3c452c55ccdc38fd5 /Documentation/githooks.txt
parent0d0ac3826a3bbb9247e39e12623bbcfdd722f24c (diff)
downloadgit-3e14dd2c8e9bc3b4bd2fb8197db6fe47133815cb.tar.gz
mention use of "hooks.allownonascii" in "man githooks"
The default pre-commit script checks the config variable "hooks.allownonascii" to determine whether to allow non-ASCII file names -- mention this in "man githooks", just as the section on "update" mentions the use of "hooks.allowunannotated". Signed-off-by: Robert P. J. Day <rpjday@crashcourse.ca> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/githooks.txt')
-rw-r--r--Documentation/githooks.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/githooks.txt b/Documentation/githooks.txt
index 959044347e..5bf653c111 100644
--- a/Documentation/githooks.txt
+++ b/Documentation/githooks.txt
@@ -99,6 +99,10 @@ 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.
+
prepare-commit-msg
~~~~~~~~~~~~~~~~~~