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

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

799 views 0 4
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