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

Re: Feature request: svn diff --diff-cmd --diff-cmd-args

From: Liu Yubao <yubao.liu_at_gmail.com>
Date: 2006-08-14 07:26:55 CEST

Gavin Lambert wrote:
> Quoth Liu Yubao <mailto:yubao.liu@gmail.com>:
>> How about 'svn diff --diff-cmd="diff -ubB" some_file'?
>> I tried this command but it seemed to execute a command named
>> "diff -ubB" and failed, I think it requires a minor patch.
>
> IMHO the current behaviour there is correct.
>
> There's a very good reason why the filename and arguments are kept
> separate -- otherwise what happens if your diff command has a space in
> the filename/path?
>
I think if 'svn diff --diff-cmd="diff" "my file"' works well then
'svn diff --diff-cmd="diff -ubB" "my file"' should be ok too. If
the file name starts with '-' or '--', we can use --diff-cmd="diff -ubB --".

I have checked the source code, but I need some time to understand it
because there are many many apr functions.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 14 07:29:55 2006

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.