[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 11:53:14 -0700

On Fri, Apr 3, 2009 at 11:44 AM, Andrey Repin <anrdaemon_at_freemail.ru> wrote:

> Greetings, Paul Koning!
>
> >> Greetings, All! I'm exhausted of ideas... I want diff
> >> command to simple show the changed lines as per diff -cb or
> >> diff -b Any way to unset built-in -u flag? It does set it
> >> even to the external diff command...
>
> > I mentioned that quite a while ago. It seems that the only way to do
> > it is to use a script as your external command, which strips out the
> > -u flag and passes only what you want to the real diff command.
>
> I could do that, however, but... it's not what I prefer to do every now and
> then.
>
> > This is an unfortunate bug.
>
> More like absence of a feature... at least in relation to builtin diff.
> For external program call, it is sure bug.
>
> Fake edit:
> After some research, the c:/bin/diff.bat with
> > shift
> > C:/bin/diff.exe %*
> did the trick. Thanks.
>

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"

thanks,
-Hari

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-03 20:54:01 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.