Posts Tagged ‘blank’

How to ignore whitespaces in SVN diff

Tuesday, December 16th, 2008

Recently I setup my Zend Studio 5.5.1 to treat each file as a UNIX filetype.

This however made SVN to produce large diff files containing whitespaces.

Ignore whitespaces by using an external diff program.

[code]
svn diff --diff-cmd diff -x -uw
[/code]

You can also add "di" alias this to your ~/.bashrc file.

[code]
alias di='svn diff --diff-cmd diff -x -uw' # ignore whitespaces
[/code]

Credits go to: Akatombo Media

http://www.akatombo.com/en/comments/ignore_whitespace_in_a_subversion_diff/

Thanks.