Permalink
Browse files

Git Attributes, with control for line-endings

  • Loading branch information...
1 parent f4959e7 commit faafa249ad30715c82c30230b49f04af03c50eea @philsquared committed Oct 18, 2013
Showing with 11 additions and 0 deletions.
  1. +11 −0 .gitattributes
View
@@ -0,0 +1,11 @@
+# This sets the default behaviour, overriding core.autocrlf
+* text=auto
+
+# All source files should have unix line-endings in the repository,
+# but convert to native line-endings on checkout
+*.cpp text
+*.h text
+*.hpp text
+
+# Windows specific files should retain windows line-endings
+*.sln text eol=crlf

0 comments on commit faafa24

Please sign in to comment.