]> git.ipfire.org Git - thirdparty/git.git/commitdiff
mention use of "hooks.allownonascii" in "man githooks"
authorRobert P. J. Day <rpjday@crashcourse.ca>
Wed, 20 Feb 2019 07:53:54 +0000 (02:53 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 21 Feb 2019 17:41:21 +0000 (09:41 -0800)
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>
Documentation/githooks.txt

index 959044347e5ee0daf78b3503794e2bf3c51f0efb..5bf653c111d07e0958840e38187320a433b20d07 100644 (file)
@@ -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
 ~~~~~~~~~~~~~~~~~~