Browse files

Fix for keeping Unix line endings on Windows in shell scripts

  • Loading branch information...
1 parent 907172d commit d29ef2f2e95eaa7f9f19ec9ed831d4b33273ddb8 @Raptor399 Raptor399 committed Jun 29, 2013
Showing with 22 additions and 0 deletions.
  1. +22 −0 .gitattributes
@@ -0,0 +1,22 @@
+# Handle line endings automatically for files detected as text
+# and leave all files detected as binary untouched.
+* text=auto
+# The above will handle all files NOT found below
+# These files are text and should be normalized (Convert crlf => lf)
+*.java text
+*.xml text
+*.txt text
+# These files are binary and should be left untouched
+# (binary is a macro for -text -diff)
+*.jar binary
+*.so binary
+*.dll binary
+*.dylib binary
+# Unix shell scripts must always end in a linefeed
+*.sh eol=lf

0 comments on commit d29ef2f

Please sign in to comment.