SourceTree: Is there any way to turn off file preview / diff on a file or file type?

I've got a large file that happens to be stored in text (Adobe Illustrator), and every time I make even a tiny change the entire file gets previewed with green/red lines in SourceTree. It brings ST to a crawl for 20 seconds, while it goes line by line through the file for changes. I really don't need to see the file previewed at all, so is there any way to tell ST that I'm not interested in previewing or diffing the file? I would be happy to give up previewing on all files of type .ai if necessary.

This is on Mac, if it matters.

3 answers

1 accepted

This widget could not be displayed.

Thanks to Steve Samuels, who answered it in this thread.

Use the Diff panel in preferences, edit filter by file type, add the file type (ex: "*.ai"), and then RESTART SOURCE TREE for it to take effect.

This works. Would be great though if you could disable the diff preview ONLY when selecting multiple files.

Comparing a single png works fine on my Macbook Pro with SSD, but when you select 5 or more it just grinds to a halt.

This widget could not be displayed.

Hi there,

I am using the Windows version 1.6.11.0. Is this still in there. Cannot find it.

I can find a filter to show only certain files in the unstaged/staged section.

But I would like to disable the preview of the diff on certain files (I am having compiled files which take about 5 seconds to show on the right (preview) panel). These I would like to hide.

Max File Count 0 to disable

This widget could not be displayed.

A bit of an old thread, but it was the top search result when I Googled, so I thought I just leave my solution here.

I too had an issue where SourceTree crawled to a snail pace when there was a big file in my changes. It's a file I want to commit, but don't need to review. Ignoring it would be the solution.

I couldn't find the "filter by file type" mentioned in the answer. But entering the exact name of the file in "Ignore File Patterns" worked (after restart). See screenshot.

Screen Shot 2018-08-01 at 3.33.45 PM.png

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published May 30, 2018 in Sourcetree

Tip from the team: configuring Git or Mercurial in Sourcetree

Supported Platforms macOS Windows To make using Sourcetree as simple yet powerful as possible we embed (bundle) dependencies such as Git, Git LFS, and Mercurial. We strive to keep these...

721 views 1 3
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