summaryrefslogtreecommitdiff
path: root/.gitattributes
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2018-11-14 13:32:43 +0000
committerRobin Watts <robin.watts@artifex.com>2018-11-14 13:41:48 +0000
commit9a982079dabc985bbd26d69322f517495158e882 (patch)
tree5e811296be0600c93edac32c298f787524d51626 /.gitattributes
parentfa3ac5d4cfea23ddc4eed64fd6f552013019ad1a (diff)
downloadghostpdl-9a982079dabc985bbd26d69322f517495158e882.tar.gz
Update .gitattributes file.
Stolen largely from MuPDF's file. This should keep the tabs in Makefiles from confusing things.
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes21
1 files changed, 18 insertions, 3 deletions
diff --git a/.gitattributes b/.gitattributes
index 441ee7d3a..0b0b4275d 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,4 +1,19 @@
-* text=auto
-*.inf eol=crlf
-*.cat binary
+# Macros:
+[attr]tabs whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=4
+[attr]spaces whitespace=trailing-space,space-before-tab,tabs-in-indent
+[attr]makefile whitespace=trailing-space,space-before-tab,indent-with-non-tab,tabwidth=8
+* text=auto
+Make* makefile
+*.mak makefile
+*.inf eol=crlf
+*.cat binary
+
+# Documentation files:
+*.txt spaces
+*.htm spaces
+*.css spaces
+
+# Source files
+*.c spaces
+*.h spaces