You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Vincent Lefevre <vi...@vinc17.org> on 2003/12/23 00:44:55 UTC
svn diff: choosing the number of context lines
Hi,
Is there a way to choose the number of context lines in "svn diff"?
I've tried "svn diff -U5" for instance, but I get:
svn: invalid option character: U
though "man diff" says:
-u -U NUM --unified[=NUM]
Output NUM (default 3) lines of unified context.
--
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/> - 100%
validated (X)HTML - Acorn Risc PC, Yellow Pig 17, Championnat International
des Jeux Mathématiques et Logiques, TETRHEX, etc.
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn diff: choosing the number of context lines
Posted by John Szakmeister <jo...@szakmeister.net>.
On Monday 22 December 2003 19:44, Vincent Lefevre wrote:
> Hi,
>
> Is there a way to choose the number of context lines in "svn diff"?
> I've tried "svn diff -U5" for instance, but I get:
>
> svn: invalid option character: U
>
> though "man diff" says:
>
> -u -U NUM --unified[=NUM]
> Output NUM (default 3) lines of unified context.
No, svn's internal diff command doesn't have all of the features and options
of the GNU diff command. You can either write a wrapper to diff and edit
~/.subversion/config to use it for your diff command, or you can do 'svn diff
--diff-cmd=diff -x -U5' to get what you want.
-John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org