Colorize svn diff

Install colordiff and configure Subversion's diff-cmd.

Installing colordiff

On Mac OS X, you can install colordiff using MacPorts.

$ sudo port install colordiff

On Debian or Ubuntu, you can install colordiff using apt.

$ sudo apt-get install colordiff

On other systems, you can download source tarball from http://www.colordiff.org/ and install colordiff.

Configure Subversion

~/.subversion/config

[helpers]
diff-cmd = colordiff

Execution example

$ svn diff | less -R

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.