You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Sam Steingold <sd...@gnu.org> on 2011/04/01 16:15:38 UTC

svn diff -x --unified

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.

Re: svn diff -x --unified

Posted by Sam Steingold <sd...@gnu.org>.
Hi Ben,

> * Ben Hsu <or...@oyhrsyl.pbz> [2011-04-01 17:32:21 -0400]:
>
> does this work for you?
>
> svn  diff --diff-cmd=/usr/bin/diff -x --unified=3

yes, thanks, that did the trick!

-- 
Sam Steingold (http://sds.podval.org/) on CentOS release 5.5 (Final) X
http://mideasttruth.com http://camera.org http://iris.org.il
http://memri.org http://dhimmi.com http://ffii.org
An elephant is a mouse with an operating system.

Re: svn diff -x --unified

Posted by Ben Hsu <be...@bluefly.com>.
Hi Sam,

does this work for you?

svn  diff --diff-cmd=/usr/bin/diff -x --unified=3


On Fri, Apr 1, 2011 at 10:15 AM, Sam Steingold <sd...@gnu.org> wrote:

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