Skip to contentSkip to conversation

mention use of "hooks.allownonascii" in "man githooks"

PATCH New Robert P. J. Day 1 participant 1 message Feb 20, 2019 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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".

---

Documentation/githooks.txt +4 -0
index 959044347e..5bf653c111 100644
@@ -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
 ~~~~~~~~~~~~~~~~~~
 
Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                  http://crashcourse.ca/dokuwiki

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================