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

Re: svn diff: choosing the number of context lines

From: John Szakmeister <john_at_szakmeister.net>
Date: 2003-12-23 02:16:38 CET

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
Received on Tue Dec 23 02:05:57 2003

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.