Colorised svn diffs

Posted on
1 Feb 2010

With the help of colordiff my svn diffing just got a whole lot prettier:

% svn diff --diff-cmd colordiff -x -w files |\
    less -RS

(I like to pass -w to the diff-er to ignore whitespace changes). Piping through less in raw mode (-r/-R) interprets the colour escape-sequences correctly.

Thanks to commandlinefu for the idea.