SourceTree is diff-ing unchanged hunks

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

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

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.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

647 views 0 4
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you