diff options
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 |