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

Re: Parameters to 'diff'

From: John Peacock <john.peacock_at_havurah-software.org>
Date: Tue, 08 Jul 2008 11:29:19 -0400

Michael Maxwell wrote:
> A couple days ago, in a thread entitled "diff parameters in config
> file", I asked about using the ~/.subversion/config file to change
> some things about the way 'svn diff' works. (Specifically, I wanted
> to change the '-' and '+' tags to the standard '<' and '>'. I forgot
> to mention that I wanted to turn OFF the '-u' default parameter,
> which doesn't appear to be possible unless you use a different
> 'diff'.)

Both context and unified diff formats are more reliable to apply
programmatically and AFAICT most people think easier to read as well.
The commandline option --diff-cmd (points to the actual diff executable)
and the --extensions/-x option (passed as extended arguments to the
above) are there to provide a way to customize that behavior.

I don't believe the builtin Subversion diff code produces anything
except unified diffs, so you are going to have to use an external
application in any case. So having to write a wrapper script is
inevitable in your situation.

Sorry

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-07-08 17:29:50 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.