Color-highlighted svn diff output
Subversion | (3)
This post has been inspired by several articles: Viewing svn diff result in colors by Jakub, and A better svn diff by Antonio.
This is what you get when you do a svn diff:
[caption id="attachment_59" align="alignnone" width="256" caption="Original svn diff"][/caption]
But what if we want a color-highlighted svn diff output? Subversion supports using external differencing tools, at least since version 1.2.
So lets use colordiff, a Perl wrapper for diff which produces the same output but with pretty 'syntax' highlighting, and custom color schemes.
First, install colordiff. Under Debian:
$ sudo aptitude install colordiff
Then you just have to tell Subversion to use ...