diff options
| author | Paul Eggert | 2016-12-12 14:54:30 -0800 |
|---|---|---|
| committer | Paul Eggert | 2016-12-12 14:55:59 -0800 |
| commit | 3e651e3c6b241eaeab70e63c267366e9678b6b52 (patch) | |
| tree | e5662f7755e9d7f3cd58aa794f0c402bb056e1fe | |
| parent | 27cada035a79b633e856a437dd0e037acc1d61c6 (diff) | |
| download | emacs-3e651e3c6b241eaeab70e63c267366e9678b6b52.tar.gz emacs-3e651e3c6b241eaeab70e63c267366e9678b6b52.zip | |
* build-aux/git-hooks/pre-commit: Add whitespace comment.
| -rwxr-xr-x | build-aux/git-hooks/pre-commit | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build-aux/git-hooks/pre-commit b/build-aux/git-hooks/pre-commit index 5a512442b18..3709784fd13 100755 --- a/build-aux/git-hooks/pre-commit +++ b/build-aux/git-hooks/pre-commit | |||
| @@ -45,4 +45,12 @@ for new_name in `$git_diff HEAD`; do | |||
| 45 | esac | 45 | esac |
| 46 | done | 46 | done |
| 47 | 47 | ||
| 48 | # The '--check' option of git diff-index makes Git complain if changes | ||
| 49 | # introduce whitespace errors. This can be a pain when editing test | ||
| 50 | # files that deliberately contain lines with trailing whitespace. | ||
| 51 | # To work around the problem you can run a command like 'git config | ||
| 52 | # core.whitespace -trailing-space'. It may be better to revamp the | ||
| 53 | # tests so that trailing spaces are generated on the fly rather than | ||
| 54 | # being committed as source. | ||
| 55 | |||
| 48 | exec git diff-index --check --cached HEAD -- | 56 | exec git diff-index --check --cached HEAD -- |