It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why does Sourcetree show line difference when there isn't one?

Looking at a changed file from my git repo in Sourcetree, it has some legitimate changes in it.  But when I compare versions of the file and look in the Sourcetree 'differences' pane, it is showing a line that (I believe) was unchanged.  It show a red -, and green + for the same line #23, with the same text, same number of spaces, etc:

Screen Shot 2019-10-02 at 11.43.18 AM.png 

I guess my question is: why is this marked as a "difference"?  Thanks for the help!

1 answer

1 accepted

0 votes
Answer accepted
Mikael Sandberg Community Leader Oct 02, 2019

Hi @jwright,

Welcome to the Atlassian Community.

It could be that there is a white space change on that line. You can set it to ignore white space by clicking on the cogwheel above the diff window.

Thanks @Mikael Sandberg for the prompt reply!  I thought it might be whitespace, but the two lines seem to have exactly the same number of characters and whitespace.  But, indeed, if I check the ignore whitespace option, the questionable lines disappear.  Thanks for the tip.  Still bothers me a little bit, but thanks!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,959 views 0 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you