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

svn diff -x --unified

From: Sam Steingold <sds_at_gnu.org>
Date: Fri, 01 Apr 2011 10:15:38 -0400

How do I supply the number of context lines for unified diff?

$ svn diff --help
seems to imply that "svn diff -x --unified" is what I need.
However, there seems to be no way to pass "--unified=1" to the external
diff program:

$ svn di -x '--unified 1' my-file-name
svn: Invalid argument '1' in diff options
$ svn di -x --unified 1 my-file-name
svn: '1' is not under version control
$ svn di -x --unified -x 1 my-file-name
svn: Invalid argument '1' in diff options
$ svn di -x --unified=1 my-file-name
svn: Error parsing diff options: Missing parameter for the specified command line option
$ svn di -x --unified 1 my-file-name
svn: '1' is not under version control
$ svn di -x -u1 my-file-name
svn: Error parsing diff options: Bad character specified on command line

thanks!

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X
http://iris.org.il http://honestreporting.com http://jihadwatch.org
http://thereligionofpeace.com http://mideasttruth.com http://www.memritv.org
Don't ascribe to malice what can be adequately explained by stupidity.
Received on 2011-04-01 16:16:10 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.