SourceTree is diff-ing unchanged hunks

andrew January 20, 2016

Screen Shot 2016-01-20 at 3.06.41 PM.png

I didn't change this, it is unchanged. 

It also does this for whitespace in the middle of the file. 

 

Is there some sort of setting I'm missing for super-aggressive diff's? is this a bug? Am I somehow bad at Git?

 

2 answers

2 votes
Seth
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2016

The particular change being displayed there (highlighted badly) is whether or not there is a blank line at the end of the file. As Tim said, it shouldn't display if you ignore whitespace.

2 votes
Tim Crall
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 20, 2016

You can set it to ignore whitespace differences by clicking on the little gear to the right and selecting "Ignore whitespace"

Screen Shot 2016-01-20 at 1.24.13 PM.png

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events