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>
Robert P. J. Day committed
Feb 20, 2019 at 02:53 UTC
3e14dd2c8e9bc3b4bd2fb8197db6fe47133815cb
1 file changed
+4
Documentation/githooks.txt
+4
@@ -99,6 +99,10 @@ All the `git commit` hooks are invoked with the environment
99
variable `GIT_EDITOR=:` if the command will not bring up an editor
100
to modify the commit message.
101
102
+The default 'pre-commit' hook, when enabled--and with the
103
+`hooks.allownonascii` config option unset or set to false--prevents
104
+the use of non-ASCII filenames.
105
+
106
prepare-commit-msg
107
~~~~~~~~~~~~~~~~~~
108