[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Is there a way to unset the built-in -u option to diff command?

From: Stefan Sperling <stsp_at_elego.de>
Date: Sat, 4 Apr 2009 14:02:15 +0100

On Fri, Apr 03, 2009 at 04:15:27PM -0400, Paul Koning wrote:
> >>>>> "Stefan" == Stefan Sperling <stsp_at_elego.de> writes:
> Stefan> On Fri, Apr 03, 2009 at 02:57:24PM -0400, Paul Koning wrote:
> >> >>>>> "Hari" == Hari Kodungallur <hkodungallur_at_gmail.com> writes:
> >>
> >> > I am not sure if you are looking for something similar, but if >
> >> you pass the following, it shows the unified diff with only the >
> >> changed line. > --diff-cmd diff -x "--unified=0"
> >>
> >> The problem is that you can't get rid of the -u. Essentially, SVN
> >> assumes that all possible things you might supply as diff-cmd are
> >> like GNU diff. If you want to call a diff program for which -u
> >> isn't a valid switch, you're stuck, short of wrapping it in a
> >> script to get rid of the invalid swich.
> >>
> >> An example is xxdiff.
> Stefan> I cannot reproduce this problem:
> Ok, I did some more testing. It may be that this existed in the first
> svn I used (v1.2.3). WIth -x it works in v1.4.4, at least in the
> sense that the -u goes away.
> However, the -L does not go away, and xxdiff doesn't like -L either.
> I think minimally there needs to be a way to say "don't give me ANY
> switches". More general would be a way to specify what switch token
> to use for what purpose. For example xxdiff wants --title1 and
> --title2 rather than the first and second -L.

Yes. I agree.

Received on 2009-04-04 15:03:17 CEST

This is an archived mail posted to the Subversion Users mailing list.