Permalink
Browse files

Add a .gitattributes so we can have eol sanity

  • Loading branch information...
1 parent 842e30f commit 4f23c3488f581191d1f4e14fcfa4623298bd6081 @tclem tclem committed with nulltoken Mar 5, 2012
Showing with 33 additions and 11 deletions.
  1. +33 −11 .gitattributes
View
@@ -1,15 +1,37 @@
-*.sln crlf
-*.csproj crlf
-*.cs crlf diff=csharp
+# Text files that should be normalized to LF in odb.
+*.cs text diff=csharp
+*.config text
-*.md crlf
+*.sln text
+*.csproj text
-*.cmd crlf
-*.msbuild crlf
-*.xml crlf
-*.nuspec crlf
-*.ps1 crlf
+*.md text
+*.sh text
+*.ps1 text
+*.cmd text
+*.bat text
+*.markdown text
+*.msbuild text
-.gitattributes crlf
+Lib/* binary
+GitHub.Tests.Integration/Resources/* binary
-*.sh eol=lf
+
+# Binary files that should not be normalized or diffed
+*.png binary
+*.jpg binary
+*.gif binary
+
+*.pfx binary
+*.snk binary
+*.dll binary
+*.exe binary
+*.lib binary
+*.exp binary
+*.pdb binary
+*.sdf binary
+*.7z binary
+
+
+# Catch all for anything we forgot. Add rules if you get CRLF -> LF warnings.
+* text=auto

0 comments on commit 4f23c34

Please sign in to comment.