Browse Source

Add .gitattributes to normalize line endings

Scott Lahteine 8 years ago
parent
commit
f0ef8a1cbd
1 changed files with 19 additions and 0 deletions
  1. 19 0
      .gitattributes

+ 19 - 0
.gitattributes

@@ -0,0 +1,19 @@
+# Set the default behavior, in case people don't have core.autocrlf set.
+* text=auto
+
+# Files with Unix line endings
+*.c   text eol=lf
+*.cpp text eol=lf
+*.h   text eol=lf
+*.ino text eol=lf
+*.py  text eol=lf
+*.sh  text eol=lf
+
+# Files with native line endings
+# *.sln text
+
+# Binary files
+*.png binary
+*.jpg binary
+*.fon binary
+