How to send svn diff to meld

On one hand meld provides a nice GUI to visualise the differences between 2 files.

On the other hand, with SVN diff command, you can obtain the differences between 2 versions of the same file so you end up with one file.

In order to combine the two, you can simply type:

svn diff --diff-cmd='meld' -r4550 yourfile
Please follow and like us:
This entry was posted in Linux and tagged , . Bookmark the permalink.

7 Responses to How to send svn diff to meld

  1. Sergio Martini says:

    Awesome! Thank you. I created a function in my .bashrc to do this always:
    function svnmeld{ svn diff –diff-cmd=’meld’ $1 $2 }

  2. Imanzano says:

    Works great!. Thank you.

  3. Lincoln Nascimento says:

    It worked perfectly! Thanks a lot!

  4. As Sergio Mariani said, but well-formatted in ~/.bashrc:
    function svnmeld {
    svn diff –diff-cmd=’meld’ $1 $2

  5. to says:
    function svnmeld (){
            svn diff --diff-cmd=meld $@
  6. João Boka says:

    Thank you Thomas and friends,

    When I first used your command, some Gtk trash warnings showed up on my screen.
    Then I changed the command to:
    svn diff –diff-cmd=’meld’ -r4550 yourfile 1&>/dev/null


Leave a Reply

Your email address will not be published.