Login | Register
My pages Projects Community openCollabNet

Discussions > users [DISABLED] > Re: Is there a way to unset the built-in -u option to diff command?

subversion
Discussion topic

Back to topic list

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

Author hkodungallur
Full name Hari Kodungallur
Date 2009-04-03 12:39:12 PDT
Message On Fri, Apr 3, 2009 at 11:57 AM, Paul Koning <Paul_Koning at dell dot com> wrote:

> >>>>> "Hari" == Hari Kodungallur <hkodungallur at gmail dot 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
Attachments

« Previous message in topic | 9 of 11 | Next message in topic »

Messages

Show all messages in topic

Is there a way to unset the built-in -u option to diff command? Andrey Repin <anrdaemon at freemail dot ru> Andrey Repin <anrdaemon at freemail dot ru> 2009-04-03 11:05:02 PDT
     Re: Is there a way to unset the built-in -u option to diff command? Paul Koning <Paul_Koning at dell dot com> Paul Koning <Paul_Koning at dell dot com> 2009-04-03 11:09:42 PDT
         Re: Is there a way to unset the built-in -u option to diff command? Andrey Repin <anrdaemon at freemail dot ru> Andrey Repin <anrdaemon at freemail dot ru> 2009-04-03 11:45:04 PDT
             Re: Is there a way to unset the built-in -u option to diff command? hkodungallur Hari Kodungallur 2009-04-03 11:53:15 PDT
     Re: Is there a way to unset the built-in -u option to diff command? Paul Koning <Paul_Koning at dell dot com> Paul Koning <Paul_Koning at dell dot com> 2009-04-03 11:58:37 PDT
         Re: Is there a way to unset the built-in -u option to diff command? Andrey Repin <anrdaemon at freemail dot ru> Andrey Repin <anrdaemon at freemail dot ru> 2009-04-03 12:25:20 PDT
             Re: Is there a way to unset the built-in -u option to diff command? Andrey Repin <anrdaemon at freemail dot ru> Andrey Repin <anrdaemon at freemail dot ru> 2009-04-03 13:45:21 PDT
         Re: Is there a way to unset the built-in -u option to diff command? stsp Stefan Sperling 2009-04-03 12:29:41 PDT
         Re: Is there a way to unset the built-in -u option to diff command? hkodungallur Hari Kodungallur 2009-04-03 12:39:12 PDT
     Re: Is there a way to unset the built-in -u option to diff command? Paul Koning <Paul_Koning at dell dot com> Paul Koning <Paul_Koning at dell dot com> 2009-04-03 13:20:36 PDT
         Re: Is there a way to unset the built-in -u option to diff command? stsp Stefan Sperling 2009-04-04 06:02:26 PDT
Messages per page: