Skip to content

Instantly share code, notes, and snippets.

@kmorcinek
Last active April 20, 2019 08:57
Show Gist options
  • Save kmorcinek/b39a473db14c60e55432a40a131adb0b to your computer and use it in GitHub Desktop.
Save kmorcinek/b39a473db14c60e55432a40a131adb0b to your computer and use it in GitHub Desktop.
Handles EOL and how to compare files based on extensions
# taken from https://github.com/aspnet/SignalR-samples/blob/master/.gitattributes
# Auto detect text files and perform LF normalization
* text=auto
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
*.jpg binary
*.png binary
*.gif binary
*.cs text=auto diff=csharp
*.vb text=auto
*.resx text=auto
*.c text=auto
*.cpp text=auto
*.cxx text=auto
*.h text=auto
*.hxx text=auto
*.py text=auto
*.rb text=auto
*.java text=auto
*.html text=auto
*.htm text=auto
*.css text=auto
*.scss text=auto
*.sass text=auto
*.less text=auto
*.js text=auto
*.lisp text=auto
*.clj text=auto
*.sql text=auto
*.php text=auto
*.lua text=auto
*.m text=auto
*.asm text=auto
*.erl text=auto
*.fs text=auto
*.fsx text=auto
*.hs text=auto
*.csproj text=auto
*.vbproj text=auto
*.fsproj text=auto
*.dbproj text=auto
*.sln text=auto eol=crlf
*.sh eol=lf
#####
# End of core list, below put you custom 'per project' settings
#####
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment