[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: Paul Koning <Paul_Koning_at_dell.com>
Date: Fri, 3 Apr 2009 16:15:27 -0400

>>>>> "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.

         paul

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

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

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.