aboutsummaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorPer Wilhelmsen <click@gonnamakeyou.com>2011-05-05 23:37:53 +0200
committerPer Wilhelmsen <click@gonnamakeyou.com>2011-05-05 23:37:53 +0200
commit13cfd105fe2cdd0786b5f2560f67f506535566be (patch)
tree072cc124134a987d560920a6eaf62c40f178304f /.gitattributes
parenta1c708d62c6af45aa4d02fbc5909b2ec41b87a8d (diff)
Repository: Add filetype attribute handling for specific filetypes found in the repository.
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes16
1 files changed, 16 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 00000000000..9fa544d91af
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,16 @@
+# Lineendings
+*.sln eol=crlf
+*.vcproj eol=crlf
+*.vcxproj* eol=crlf
+
+# Whitespace rules
+# strict (no trailing, no tabs)
+*.cpp whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol
+*.h whitespace=trailing-space,space-before-tab,tab-in-indent,cr-at-eol
+
+# normal (no trailing)
+*.sql whitespace=trailing-space,space-before-tab,cr-at-eol
+*.txt whitespace=trailing-space,space-before-tab,cr-at-eol
+
+# special files which must ignore whitespace
+*.patch whitespace=-trailing-space