From c7de2e5ee2a120f11ce7e4a0e187feaa1db98410 Mon Sep 17 00:00:00 2001
From: Robert Dailey <rcdailey@gmail.com>
Date: Sun, 15 Mar 2015 19:14:00 -0500
Subject: [PATCH 1/2] Add automatic EOL handling to .gitattributes

---
 .gitattributes | 66 +++++++++++++++++++++++++++++++++++++---------------------
 1 file changed, 42 insertions(+), 24 deletions(-)

diff --git a/.gitattributes b/.gitattributes
index d3f7280..842ddf5 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -1,24 +1,42 @@
-.gitattributes   export-ignore
-.hooks*          export-ignore
-
-bootstrap        crlf=input
-configure        crlf=input
-*.[1-9]          crlf=input
-*.sh             crlf=input
-*.sh.in          crlf=input
-
-*.bat           -crlf
-*.bat.in        -crlf
-*.dsp           -crlf
-*.dsptemplate   -crlf
-*.dsw           -crlf
-*.pfx           -crlf
-*.png           -crlf
-*.sln           -crlf
-*.vcproj        -crlf
-
-*.c              whitespace=tab-in-indent
-*.h              whitespace=tab-in-indent
-*.cxx            whitespace=tab-in-indent
-*.txt            whitespace=tab-in-indent
-*.cmake          whitespace=tab-in-indent
+# Enable automatic EOL handling by default
+* text=auto
+
+############################################
+## Files ignored on export
+############################################
+
+.gitattributes   text export-ignore
+.hooks*          text export-ignore
+
+############################################
+## Linux Specific (Must have LF)
+############################################
+
+bootstrap        eol=lf
+configure        eol=lf
+*.[1-9]          eol=lf
+*.sh             eol=lf
+*.sh.in          eol=lf
+
+############################################
+## Windows Specific (Must have CRLF)
+############################################
+
+*.bat            eol=crlf
+*.bat.in         eol=crlf
+*.dsp            eol=crlf
+*.dsptemplate    eol=crlf
+*.dsw            eol=crlf
+*.pfx            eol=crlf
+*.sln            eol=crlf
+*.vcproj         eol=crlf
+
+############################################
+## Code / Scripts
+############################################
+
+*.c              text whitespace=tab-in-indent
+*.h              text whitespace=tab-in-indent
+*.cxx            text whitespace=tab-in-indent
+*.txt            text whitespace=tab-in-indent
+*.cmake          text whitespace=tab-in-indent
-- 
2.3.2

