I make changes to a source controlled file in atom, but then git is finding that 50% of the lines in the file have changed even though I haven’t touched them. This is a pain because I often need to diff commits to debug and the git log is showing that most of the lines have changed between commits instead of just the lines that I have actually modified. It also means that I get conflicts on things that I haven’t changed.
I presume atom is doing something clever like converting tabs to spaces or something like that (most of the files will have been made in a different text editor initially). Does anyone know if there is a way of turning this off? It doesn’t happen in any of the other editors we use.