I changed a RubyMine settings few days back. It was related to changing the end of line character from '\r\n' to something else, so that it is only Mac compatible.
Now, each file I edit is changed completely in git diff. Also, I can't recall which setting option was it.
Any guesses?