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

SourceTree incorrectly shows a large text file as binary, doesn't do diff Edited

I have a large XML file stored in Git (GitHub) repo.

[user@host tools]$ ls -lh somefile.xml
-rw-r--r-- 1 user users 1.6M Jul 19 17:25 somefile.xml
[user@host tools]$ file somefile.xml
somefile.xml: XML document, UTF-8 Unicode text, with very long lines

By default SourceTree for Windows is not showing diff for this file in any commit.

It shows a message "No changes in this file have been detected, or it is a binary file".

But when I go to Options / Diff and change Size Limit (Text) from the default 1024KB to something larger than the above file size (ie. 10240KB) then it shows the diff correctly.

The default error message shown for this file is misleading, because it not a binary nor an unchanged file. SourceTree should warn that this file is too large to show a diff using current settings. Also it should correctly detect UTF-8 files, if it makes any problems for Git.

I'm using SourceTree 2.1.2.5 on Windows 7, with NTFS filesystem.

2 answers

1 vote
Ana Retamal Atlassian Team Jul 21, 2017

Hi Przemyslaw, I've created a Feature request on your behalf to improve the messaging shown in this case, you can find it at SRCTREEWIN-7627.

For the future, you're welcome to submit your own suggestions at jira.atlassian.com by clicking on the Create button

Hope this helps!

Ana

is this fixed? Because, after I take an update ..i still see this issue... if not is there any timeline.

This does not seem to be fixed in Sourcetree 3.0.8. I am getting the message for a 1 MB JSON file:

No changes in this file have been detected, or it is a binary file.

OK, figured out that this can be fixed by increasing the size limit in the Diff tab of the options.

Like Francois Bertrand likes this

This does not seem to be fixed in Sourcetree 3.0.8. I am getting the message for a 1 MB JSON file:

No changes in this file have been detected, or it is a binary file.

I re-posted this as a reply to Ana's answer. Deleting this answer does not seem to be possible for me.

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...

676 views 0 9
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