aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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