[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn diff -x -b

From: Marcus Rueckert <darix_at_web.de>
Date: 2005-06-01 01:18:59 CEST

On 2005-05-27 14:47:11 -0700, Seth Arnold wrote:
> Hello; I find it a bit unfortunate that svn diff doesn't understand -b
> (ignore whitespace) by default. It seems further unfortunate that in
> order to pass -b to diff, one must change from:
> svn diff foo bar
> to:
> svn diff --diff-cmd diff -x -ub foo bar
>
> Yes, it works, but it's annoying. :) Anyway, it'd be keen if the built-in
> differ could grok a larger subset of GNU diff's options, such as -b
> (ignore whitespace) and -p (show C function).

there is a diff-cmd option in "~/.subversion/config". the only point
which is missing is a "diff-cmd-params"-option.

you can of course do
"diff-cmd = $HOME/bin/svn-diff"

and svn-diff would be:
"""
#!/bin/sh
exec /usr/bin/diff -ubrN "$@"
"""

just my 2 cents

darix

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jun 1 01:20:11 2005

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

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