gitattributes: add EOL attributes for various file types
authorPhil Burk <philburk@mobileer.com>
Mon, 30 May 2016 00:10:45 +0000 (17:10 -0700)
committerPhil Burk <philburk@mobileer.com>
Mon, 30 May 2016 00:10:45 +0000 (17:10 -0700)
.gitattributes [new file with mode: 0644]

diff --git a/.gitattributes b/.gitattributes
new file mode 100644 (file)
index 0000000..cb0e2ef
--- /dev/null
@@ -0,0 +1,31 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text=auto
+
+# Explicitly declare text files you want to always be normalized and converted
+# to native line endings on checkout.
+*.c text
+*.h text
+*.cpp text
+*.hpp text
+*.fth text
+*.f text
+*.txt text
+*.m text
+
+# Declare files that will always have CRLF line endings on checkout.
+*.sln text eol=crlf
+*.dsp text eol=crlf
+*.dsw text eol=crlf
+*.vcproj text eol=crlf
+*.sln text eol=crlf
+*.sln text eol=crlf
+*.doc text eol=crlf
+*.bat text eol=crlf
+
+# Denote all files that are truly binary and should not be modified.
+*.dic binary
+*.odt binary
+*.pdf binary
+*.png binary
+*.jpg binary
+*.wav binary