Configure SVN To Use Meld For Diffs

Execute the script below to have meld appear with side by side diffs whenever you perform commands like svn diff [my file]

#!/bin/bash
SEARCH="# diff-cmd = diff_program (diff, gdiff, etc.)"
REPLACE="diff-cmd = /usr/bin/meld"
FILEPATH="$HOME/.subversion/config"
sed -i "s;$SEARCH;$REPLACE;" $FILEPATH

Author

Programster

Stuart is a software developer with a passion for Linux and open source projects.

comments powered by Disqus