svn diff command shows the differences between two versions of the file. If you want to get the nice, colored output of this command just do:
- Install colordiff (eg. on Ubuntu):
sudo apt-get install colordiff - Simply redirect svn diff output to colordiff:
svn diff -r Rev1:Rev2 file | colordiff - You can declare a simple function in your ~/.bashrc file:
svndiff() {
svn diff "${@}" | colordiff
} - To test your new svndiff function run:
svndiff -r Rev1:Rev2 file - To color longer outputs you can use vi editor:
svn diff -r R1:R2 file | vim -