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

Chris Jennings February 6, 2016

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

0 votes
Chris Jennings February 9, 2016

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.

0 votes
Cherny D. C. Berbesí I. February 6, 2016

Try adding a custom action

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events