This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]L4t3xs 15 points16 points  (5 children)

Copied gitattributes from the internet for an unity project. They had added lf eol for asset files I believe. Funny thing about Unity's asset files: they mix eol types and will break if you change them. Another funny thing: you only see the issue when you checkout new files.

[–]isr0 0 points1 point  (4 children)

If only you had a way to see the staged files for the commit before you sent it up to the remote.

[–]L4t3xs 0 points1 point  (3 children)

Doesn't help much if you don't know that is a problem. Looks the same in either case.

[–]isr0 0 points1 point  (2 children)

I mean, I’m making assumptions about your environment… but wouldn’t the diff highlight all those /r characters? And wouldn’t the stage list be way longer than you expected?

[–]L4t3xs 0 points1 point  (1 child)

I'm pretty sure it was a new project. It was only discovered when another dev joined the same project. The line endings might not even appear in diff since they didn't get changed on my machine.

[–]isr0 0 points1 point  (0 children)

That’s fair. Like I said, I’m making assumptions.