How to ignore white spaces and EOL style in Subversion

How to ignore white spaces and EOL style in Subversion

In order to ignore white spaces and EOL style (CRLF / LF) in Subversion, we need to set a couple of options, but I don't remember all the options.

A better way would be defining an alias in Linux. Once we defined, we don't need to worry about all the options to ignore white spaces and EOL style.

Let's define the following "svndiff" alias. Once we defined, we just need to use "svndiff" command which ignores all white spaces and EOL style.

$ alias svndiff='svn diff --diff-cmd diff -x -uw'
$ svndiff file-name