summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes7
1 files changed, 7 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..9849adc
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,7 @@
+* text=auto
+*.svg -text
+
+# Make git diff warn about trailing space and tabs in indentation:
+*.c whitespace=space-before-tab,tab-in-indent,trailing-space
+*.cpp whitespace=space-before-tab,tab-in-indent,trailing-space
+*.h whitespace=space-before-tab,tab-in-indent,trailing-space