emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3e651e3: * build-aux/git-hooks/pre-commit: Add whit


From: Paul Eggert
Subject: [Emacs-diffs] master 3e651e3: * build-aux/git-hooks/pre-commit: Add whitespace comment.
Date: Mon, 12 Dec 2016 22:56:03 +0000 (UTC)

branch: master
commit 3e651e3c6b241eaeab70e63c267366e9678b6b52
Author: Paul Eggert <address@hidden>
Commit: Paul Eggert <address@hidden>

    * build-aux/git-hooks/pre-commit: Add whitespace comment.
---
 build-aux/git-hooks/pre-commit |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/build-aux/git-hooks/pre-commit b/build-aux/git-hooks/pre-commit
index 5a51244..3709784 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
   esac
 done
 
+# The '--check' option of git diff-index makes Git complain if changes
+# introduce whitespace errors.  This can be a pain when editing test
+# files that deliberately contain lines with trailing whitespace.
+# To work around the problem you can run a command like 'git config
+# core.whitespace -trailing-space'.  It may be better to revamp the
+# tests so that trailing spaces are generated on the fly rather than
+# being committed as source.
+
 exec git diff-index --check --cached HEAD --



reply via email to

[Prev in Thread] Current Thread [Next in Thread]