Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API

From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
BordedDev68210dThis is why I always add a `.gitattributes`
Then you can set the rules e.g:
* text=auto
*.sh text eol=lf -
retoor482110dWow, it's even displayed there? Never noticed. I don't notice things, I don't notice all the things! Also more on the vimmy side lately. It's just what app I've opened first I guess.
-
donkulator335910d@BordedDev Better to make whatever is splitting it into lines accept both \n and \r\n. Mixed/mangled line endings are inevitable, just like leading/trailing whitespace.
-
Blame windows for this, every other OS manages to use non-retarded line endings
Not to mention \ and case insensitive paths... Who thought that's a good idea -
@devRancid Case insensitive paths are a very good idea if you want non-techies to use the OS.
An accountant or a lawyer or whatever, upon finding that they have two files in the same folder called Report and report, will conclude that the OS is unreliable. They'll be wrong, but they still won't want to use it.
Related Rants
First, the motherfucker CRLF. I wrote some test cases, split the string into lines. It worked fine until I pulled it from Git. Spent 30 minutes fixing it until I looked down at the VSCode statusbar and saw... "CRLF"!
rant
crlf
git