Alex Rivera | Logout

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

Asked 2009-11-16T11:49:07.280
96

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?

Edit
Report

1 Answer

98

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

answered 2009-11-16T12:00:45.040

Your Answer