react-juce icon indicating copy to clipboard operation
react-juce copied to clipboard

Add a .gitattributes files to code with text files, their line-endings, and storing binary files.

Open jrlanglois opened this issue 4 years ago • 4 comments

Something like this:

* text eol=crlf
*.sh text eol=lf

*.7z binary
*.aif binary
*.aiff binary
*.asf binary
*.eot binary
*.fla binary
*.flac binary
*.flv binary
*.gif binary
*.gz binary
*.ico binary
*.jpeg binary
*.jpg binary
*.mid binary
*.mov binary
*.mp2 binary
*.mp3 binary
*.mp4 binary
*.ogg binary
*.otc binary
*.otf binary
*.pdf binary
*.png binary
*.pyc binary
*.swf binary
*.tga binary
*.ttc binary
*.ttf binary
*.wav binary
*.wma binary
*.wm binary
*.wmv binary
*.woff binary
*.zip binary

jrlanglois avatar Dec 11 '20 14:12 jrlanglois

Great! +1 for this. My only comment is to prefer unix line endings for our source code files

nick-thompson avatar Dec 12 '20 21:12 nick-thompson

My only comment is to prefer unix line endings for our source code files

I hear you! The issue is really cross platform development when including Windows... IIRC, VS2019 is now kosher with LF, but VS2015 and 2017 aren't. (Although 2015 might not be relevant to this module, what with it being on the old and gray side of toolchains...)

jrlanglois avatar Dec 13 '20 14:12 jrlanglois

Hm, right... I think it's certainly fair to leave 2015 behind :) If there's a trivial way to support VS2017 here I'm for it, but if not then it seems to me maybe not worth maintaining any complicated dance for it?

nick-thompson avatar Dec 13 '20 15:12 nick-thompson

To be fair, every IDE/editor on macOS and Linux handle CRLF just fine... It's how JUCE and JUCE users have coped with the framework for as long as it's been around.

jrlanglois avatar Dec 15 '20 16:12 jrlanglois