Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,557,532
Community Members
 
Community Events
184
Community Groups

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
Atlassian Team members are employees working across the company in a wide variety of roles.
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 # people like this

Increasing the size allowed for a Diff was the exact solution I was looking for. I was wondering why Git Diff would work but SourceTree Diff kept treating the file as binary!

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
TAGS
AUG Leaders

Atlassian Community Events