diff options
author | Tim Clem <timothy.clem@gmail.com> | 2012-03-05 23:20:00 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2012-03-06 15:00:52 +0400 |
commit | 4f23c3488f581191d1f4e14fcfa4623298bd6081 (patch) | |
tree | b8621b4518c5801a8ee2fa4b475e17851c34af4f /.gitattributes | |
parent | 842e30fcf6922431252f71ddf53504384917ac91 (diff) |
Add a .gitattributes so we can have eol sanity
Diffstat (limited to '.gitattributes')
-rw-r--r-- | .gitattributes | 44 |
1 files changed, 33 insertions, 11 deletions
diff --git a/.gitattributes b/.gitattributes index 02182816..a867c116 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 |