Diffs Do Not Render Correctly Due to An Old Style Mac Line Endings

Still need help?

The Atlassian Community is here for you.

Ask the community


Diffs do not render correctly in SourceTree due to an old style Mac line Endings (CR).


Prior to Mac OS X, the Mac used the CR character to end lines. However, both Git and Mercurial do not recognise CR as a line ending and will display diffs entirely on one line if you use them.


Use Unix LF line endings for your text files in OS X. It's been the standard for quite a while now and both git and hg understand them and SourceTree will display the diffs correctly. You can still version files with CR line endings, but the diffs will never be very readable so it's advisable to avoid it.

SourceTree does support Windows-style CR/LF endings too, because these are also supported in Mercurial and Git.
Last modified on Feb 26, 2016

Was this helpful?

Provide feedback about this article
Powered by Confluence and Scroll Viewport.