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

Re: Using an external diff program with Subversion

From: Greg Thomas <Greg_at_TheThomasHome.co.uk>
Date: 2003-08-13 00:42:20 CEST

On Tue, 12 Aug 2003 22:22:01 +0100, you wrote:

> Create a wrapper ".../diff-wrappers/gnudiff"
...
> Anyway, is it possible to write an equivalent DOS batch file?

Yup.

REM Clear the diff argument list
set ARGS=
REM Default diff argument if there are only four parameters
if "%5" == "" SET ARGS=-u

:GETNEXTARG
REM If we've only four arguments left, do the diff
if "%5" == "" goto DODIFF
REM Add the first argument to the wrapper to the diff arguments
set ARGS=%ARGS% %1
REM Shift the arguments along by one
shift
REM Go around again for the next argument
goto GETNEXTARG

:DODIFF
diff %ARGS% -L "%1" -L "%2" "%3" "%4"
REM Clear the argument list
set ARGS=

Greg

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 13 00:44:40 2003

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.