From: Robert P. J. Day Date: Wed, 20 Feb 2019 07:53:54 +0000 (-0500) Subject: mention use of "hooks.allownonascii" in "man githooks" X-Git-Tag: v2.22.0-rc0~161^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3e14dd2c8e9bc3b4bd2fb8197db6fe47133815cb;p=git 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 Signed-off-by: Junio C Hamano --- 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 ~~~~~~~~~~~~~~~~~~