@matheusbsbs / matheus-bagliano / commits / 14f9e128d3
Fork 0

Define the project whitespace policy

This establishes what the "bad" whitespaces are for this project. The rules are: - Unless otherwise specified, indent with SP that could be replaced with HT are not "bad". But SP before HT in the indent is "bad", and trailing whitespaces are "bad". - For C source files, initial indent by SP that can be replaced with HT is also "bad". - Test scripts in t/ and test vectors in its subdirectories can contain anything, so we make it unrestricted for now. Anything "bad" will be shown in WHITESPACE error indicator in diff output, and "apply --whitespace=warn" will warn about it. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Feb 10, 2008 at 19:34 UTC 14f9e128d38f809947d34979a59ee524e350ac6e
3 files changed +4
.gitattributes new
+2
@@ -0,0 +1,2 @@
1 +* whitespace=!indent,trail,space
2 +*.[ch] whitespace
Documentation/.gitattributes new
+1
@@ -0,0 +1 @@
1 +*.txt whitespace
t/.gitattributes new
+1
@@ -0,0 +1 @@
1 +* -whitespace