[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: Michael Maxwell <mmaxwell_at_casl.umd.edu>
Date: Tue, 8 Jul 2008 11:47:46 -0400

John Peacock wrote:
> Both context and unified diff formats are more reliable to
> apply programmatically and AFAICT most people think easier to
> read as well.

Well, I'm an Old Fogie. Twenty plus years of looking at '<' and '>', and not having the context unless I ask for it... I suppose there might be some other old fogies out there, if we haven't all died off.

> 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.

Right, and us Old Fogies appreciate you Young 'Uns doing that for us. My point is that these options should be provided for in the config file, *as well as* on the command line. (We don't like typing it every time. Arthritis, I 'spect.)

> 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.

Well, it wouldn't be inevitable if the dadburned config file treated 'diff-cmd' the same way it already treats 'editor-cmd', namely that you can supply parameters right there. (There are a host of other parameters to e.g. the gnu 'diff' that one might also want to pass on.)

> Sorry

Not half as sorry as you'll be when you get to my age.

   Mike Maxwell
   CASL/ U Md

---------------------------------------------------------------------
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:48:13 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.