git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] t/.gitattributes: only ignore whitespace errors in test files
@ 2008-06-12 22:35 Lea Wiemann
  2008-06-13  6:06 ` Jeff King
  0 siblings, 1 reply; 19+ messages in thread
From: Lea Wiemann @ 2008-06-12 22:35 UTC (permalink / raw)
  To: git; +Cc: Lea Wiemann

Only ignore whitespace errors in t/tNNNN-*.sh and the t/tNNNN
subdirectories.  Other files (like test libraries) should still be
checked.

Also fix a whitespace error in t/test-lib.sh.

Signed-off-by: Lea Wiemann <LeWiemann@gmail.com>
---
 t/.gitattributes |    3 ++-
 t/test-lib.sh    |    2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/t/.gitattributes b/t/.gitattributes
index 562b12e..ab6edbf 100644
--- a/t/.gitattributes
+++ b/t/.gitattributes
@@ -1 +1,2 @@
-* -whitespace
+t[0-9][0-9][0-9][0-9]-*.sh -whitespace
+t[0-9][0-9][0-9][0-9]/* -whitespace
diff --git a/t/test-lib.sh b/t/test-lib.sh
index 2a08cdc..73079d8 100644
--- a/t/test-lib.sh
+++ b/t/test-lib.sh
@@ -168,7 +168,7 @@ trap 'die' exit
 # environment variables to work around this.
 #
 # In particular, quoting isn't enough, as the path may contain the same quote
-# that we're using. 
+# that we're using.
 test_set_editor () {
 	FAKE_EDITOR="$1"
 	export FAKE_EDITOR
-- 
1.5.6.rc2.23.gfef6b.dirty

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2008-06-14  7:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-12 22:35 [PATCH] t/.gitattributes: only ignore whitespace errors in test files Lea Wiemann
2008-06-13  6:06 ` Jeff King
2008-06-13  7:49   ` [PATCH v2] " Lea Wiemann
2008-06-13 10:00   ` [PATCH] " Junio C Hamano
2008-06-14  6:48     ` Jeff King
2008-06-14  6:51       ` [PATCH 1/4] fix whitespace violations in test scripts Jeff King
2008-06-14  7:01         ` Jeff King
2008-06-14  7:20         ` Junio C Hamano
2008-06-14  7:22           ` Jeff King
2008-06-14  7:25             ` [PATCH v2 1/5] " Jeff King
2008-06-14  7:26             ` [PATCH v2 2/5] mask necessary whitespace policy " Jeff King
2008-06-14  7:27             ` [PATCH v2 3/5] avoid whitespace on empty line in automatic usage message Jeff King
2008-06-14  7:27             ` [PATCH v2 4/5] avoid trailing whitespace in zero-change diffstat lines Jeff King
2008-06-14  7:28             ` [PATCH v2 5/5] enable whitespace checking of test scripts Jeff King
2008-06-14  6:54       ` [PATCH 2/4] mask necessary whitespace policy violations in " Jeff King
2008-06-14  6:56       ` [PATCH 3/4] avoid trailing whitespace in zero-change diffstat lines Jeff King
2008-06-14  7:22         ` Junio C Hamano
2008-06-14  7:30           ` Jeff King
2008-06-14  6:56       ` [PATCH 4/4] enable whitespace checking of test scripts Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).