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.

1 answer

1 vote

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.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 11, 2018 in Sourcetree

Tip from the team: debugging Sourcetree

Supported Platforms macOS Windows If you're reading this and it's not just educational… we know you're unhappy right now and apologize for that   We're dedicated to improving yo...

724 views 10 6
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