{"thread":{"id":"50544","subject":"[PATCH] mention use of \"hooks.allownonascii\" in \"man githooks\"","startedAt":"2019-02-20T07:54:00Z","lastAt":"2019-02-20T07:54:00Z","messageCount":1,"participants":["Robert P. J. Day"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"369695","messageId":"alpine.LFD.2.21.1902200250420.7360@localhost.localdomain","threadId":"50544","inReplyTo":null,"subject":"[PATCH] mention use of \"hooks.allownonascii\" in \"man githooks\"","fromName":"Robert P. J. Day","fromEmail":"rpjday@crashcourse.ca","sentAt":"2019-02-20T07:53:54Z","receivedAt":"2019-02-20T07:54:00Z","isPatch":true,"sender":{"key":"rpjday@crashcourse.ca","avatar":"https://avatars.githubusercontent.com/u/226084077?v=4"},"body":"\nThe default pre-commit script checks the config variable\n\"hooks.allownonascii\" to determine whether to allow non-ASCII file\nnames -- mention this in \"man githooks\", just as the section on\n\"update\" mentions the use of \"hooks.allowunannotated\".\n\nSigned-off-by: Robert P. J. Day <rpjday@crashcourse.ca>\n\n---\n\ndiff --git a/Documentation/githooks.txt b/Documentation/githooks.txt\nindex 959044347e..5bf653c111 100644\n--- a/Documentation/githooks.txt\n+++ b/Documentation/githooks.txt\n@@ -99,6 +99,10 @@ All the `git commit` hooks are invoked with the environment\n variable `GIT_EDITOR=:` if the command will not bring up an editor\n to modify the commit message.\n\n+The default 'pre-commit' hook, when enabled--and with the\n+`hooks.allownonascii` config option unset or set to false--prevents\n+the use of non-ASCII filenames.\n+\n prepare-commit-msg\n ~~~~~~~~~~~~~~~~~~\n\n\n-- \n\n========================================================================\nRobert P. J. Day                                 Ottawa, Ontario, CANADA\n                  http://crashcourse.ca/dokuwiki\n\nTwitter:                                       http://twitter.com/rpjday\nLinkedIn:                               http://ca.linkedin.com/in/rpjday\n========================================================================\n"}]}