Re: How to use meld with 'svn diff'
- From: "Kevin Grover" <kevin kevingrover net>
- To: meld-list gnome org
- Subject: Re: How to use meld with 'svn diff'
- Date: Sun, 27 Apr 2008 15:15:33 -0700
On Sun, Apr 27, 2008 at 3:10 PM, Kevin Grover <
kevin kevingrover net> wrote:
On Sun, Apr 27, 2008 at 2:20 PM, Stephen Kennedy <
stevek gnome org> wrote:
> No, that's not what he wants. He wants to use meld as the app
> that compares the two files. You can do it, you just need to
> write wrapper script that grabs the two file names from the
> command line args and calls meld.
It would be nice if meld could accept the most common diff switches
(even if it just ignores them) so that you wouldn't need an external
script.
Does anybody have the list of switches handy? I didn't see them in the
quoted link.
The details are listed in the SVN Book. I used them to write this script which I've been using for a while:
------------------------ Start: svn-diff-meld
#!/bin/sh
# SVN Diff Wrapper for Meld
# KOG 2008-02
left="$6"
right="$7"
meld "$left" "$right"
------------------------ End: svn-diff-meld
I forgot to mention, I use this alias to invoke it (in bash):
alias sd='svn diff --diff-cmd=~/bin/svn-diff-meld'
I originally had it setup to run automatically, but that broke making patch files, so I set up the alias for the graphic diff.
- Kevin
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]