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])"


2 answers

This widget could not be displayed.

Try adding a custom action

This widget could not be displayed.

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

885 views 2 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