summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2008-02-11 03:34:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2008-02-11 21:23:15 (GMT)
commit14f9e128d38f809947d34979a59ee524e350ac6e (patch)
tree44555862335c98d9a3d12ec2c7c22a1917d4b293 /Documentation
parent6fb5375ede25629c23ba2129b48f143e1942e755 (diff)
downloadgit-14f9e128d38f809947d34979a59ee524e350ac6e.zip
git-14f9e128d38f809947d34979a59ee524e350ac6e.tar.gz
git-14f9e128d38f809947d34979a59ee524e350ac6e.tar.bz2
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/.gitattributes1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/.gitattributes b/Documentation/.gitattributes
new file mode 100644
index 0000000..ddb0301
--- /dev/null
+++ b/Documentation/.gitattributes
@@ -0,0 +1 @@
+*.txt whitespace