Shortend question:
Can I solve my various Git line-ending cross-platform conversion problems by using .gitattributes and setting the problematic files to binary? I have no control over the repo or the users settings.
Also: is CRLF still needed at-all for web-oriented Windows development? Most tools have either auto-detection or options to switch mode and seem to work fine with LF-only.
(removed rant)
Note: I already read many (all?) answers about this here on SO, read the help, read the book and burned way too much time on this.
Update:
I'm not looking at this help file and it mentions un-setting text
in .gitattributes:
Unset
Unsetting the text attribute on a path tells git not to attempt any end-of-line conversion upon checkin or checkout.
Why both "help.github.com" and "git-scm.com" don't mention this as a possible solutions is beyond me, but the description looks good.
But the github help does mentions it cursory, which is why I think this is what I want.
binary setting is an alias for -text -diff
I'm going to try that, and update if it works out.
Update 2:
It worked! Use *.txt -text
in .gitattributes did the trick: no conversions but still diffable and line/char summaries etc)