File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -103,17 +103,14 @@ invoked before obtaining the proposed commit log message and
103103making a commit. Exiting with a non-zero status from this script
104104causes the `git commit` command to abort before creating a commit.
105105
106- The default 'pre-commit' hook, when enabled, catches introduction
107- of lines with trailing whitespaces and aborts the commit when
108- such a line is found.
109-
110106All the `git commit` hooks are invoked with the environment
111107variable `GIT_EDITOR=:` if the command will not bring up an editor
112108to modify the commit message.
113109
114- The default 'pre-commit' hook, when enabled--and with the
115- `hooks.allownonascii` config option unset or set to false--prevents
116- the use of non-ASCII filenames.
110+ The default 'pre-commit' hook, when enabled, prevents the introduction
111+ of non-ASCII filenames and lines with trailing whitespace. The non-ASCII
112+ check can be turned off by setting the `hooks.allownonascii` config
113+ option to `true`.
117114
118115pre-merge-commit
119116~~~~~~~~~~~~~~~~
You can’t perform that action at this time.
0 commit comments