You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Glen Herrmannsfeldt <ga...@u.washington.edu> on 2006/11/29 19:02:45 UTC

svn diff -x -b doesn't work

If I do:

svn diff -x -b

 or

svn diff -x "-b"

I get:  svn: '-b' is not supported

It looks like svn is looking at the -b, instead of passing it to diff.

svn, version 1.2.3 (r15833)
   compiled Aug 26 2005, 03:42:45

thanks,

-- glen

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: svn diff -x -b doesn't work

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Nov 29, 2006, at 13:02, Glen Herrmannsfeldt wrote:

> If I do:
>
> svn diff -x -b
>
> or
>
> svn diff -x "-b"
>
> I get:  svn: '-b' is not supported
>
> It looks like svn is looking at the -b, instead of passing it to diff.
>
> svn, version 1.2.3 (r15833)
>   compiled Aug 26 2005, 03:42:45

I get no error message with Subversion 1.4.2, but "svn diff -x -b"  
does not ignore whitespace, if that's what you wanted. If so, realize  
that you need to specify the name of the external diff command,  
otherwise Subversion uses its internal diff implementation, which  
presumably does not support -b. Do this:

svn diff --diff-cmd diff -x -bu

That does invoke the external diff command with whatever parameters  
you specify.


Side note: On my system (Mac OS X) diff -b seems still not to ignore  
whitespace differences, which is odd since the manpage says it  
should. But... that's my problem. Hopefully it works for you.


-- 
To reply to the mailing list, use your mailer's Reply To All function


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org