[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: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: Fri, 3 Apr 2009 12:39:11 -0700

On Fri, Apr 3, 2009 at 11:57 AM, Paul Koning <Paul_Koning_at_dell.com> 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.
>
>
>

Sorry, completely misread the question. I thought he wanted the unified diff
but with only the changed lines without the context. My bad.

That said, while the -c options is not recognized by svn's internal diff
command, if you use --diff-cmd and pass -x -cb as the OP wants, it should
work. At least it works for me.

thanks,
-Hari

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1535088

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-03 21:40:08 CEST

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