how to make svn diff show only non-whitespace line changes between two revisions
Solution 1:
You can use
svn diff -r 100:200 -x -b > file.diff
If you want to ignore all whitespaces:
svn diff -x -w | less
Source
Solution 2:
Use -x --ignore-space-change
or -x --ignore-all-space
. (See svn -h diff
.)
Solution 3:
You can use an alternate diff command using the --diff-cmd argument for svn diff. diff is a good utility that has plenty of features for ignoring whitespace.
For example:
svn diff --diff-cmd /usr/bin/diff -x "-w"
Solution 4:
Note that end-of-lines are not considered whitespace in this scenario and that has to be ignored with:
svn diff -x --ignore-eol-style [etc...]