Can SourceTree diff be configured to skip files with only whitespace changes?

I want to see changes only in files where diff is not whitespace. The ignore whitespace feature shows all the files and I have to select files to see whether the diff contents are empty or not. Is there a way to make SoureTree show only the file names that have non-whitkespce changes?

In the command line I can use `git diff -b --numstat`. The result lists white-space only files with 0 (zero) numstats. I can then grep to shorten the list to just the file names I want. But then I have to hunt for the file names in SourceTree. 

Example command line....
     git diff -b --numstat 1d6e770 59b2b7c | grep -E "^([^0]|\d*\t[^0])"

Thanks!

2 answers

Try adding a custom action

Thanks for the reply Cherny.

I don't see how custom actions will help. It looks like they just run scripts outside SourceTree. I need to change how SourceTree displays the files.

I've only scratched the surface of custom actions though. Maybe I missed something.

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

570 views 1 2
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