Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make svn diff show only non-whitespace line changes between two revisions

I can get diffs between two revisions using something like

svn diff -r 100:200 > file.diff 

But the problem is that there are many lines that show up due to change in whitespace. Is there a way to only write those lines that actually change in a significant way and not just in whitespace?

like image 242
umar Avatar asked Nov 16 '09 11:11

umar


2 Answers

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

like image 184
jrbjazz Avatar answered Oct 09 '22 07:10

jrbjazz


Use -x --ignore-space-change or -x --ignore-all-space. (See svn -h diff.)

like image 37
ur. Avatar answered Oct 09 '22 07:10

ur.