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

Re: Blank lines

From: Ryan Schmidt <subversion-2016_at_ryandesign.com>
Date: Fri, 6 May 2016 20:20:01 -0500

On May 5, 2016, at 4:12 PM, webster.brent_at_rogers.com wrote:
>
> From: Branko Čibej <brane_at_apache.org>
>
>> Not 'status' -- 'svn status' should always show what 'svn commit' will
>> send to the server. But 'diff', I agree, could be smarter. For example,
>> right now, 'svn diff --summarize -x -w' will mention files that contain
>> only whitespace changes, even though 'svn diff -x -w' will show an empty
>> diff for those files.
>
> You should wrapper the diff command
>
> svn diff --diff-cmd 'diff -x -w'

Not quite.

--diff-cmd is for specifying the name of the diff program to run, e.g. diff. If you want to name a diff program whose path or name contains spaces, then you have to quote it, but that would be unusual.

svn diff --diff-cmd '/path with spaces/to/diff'

-x is for specifying the arguments to pass to that diff program, e.g. -w. If you want to pass multiple arguments to the diff program, you have to quote them.

svn diff --diff-cmd diff -x '-u -w'
Received on 2016-05-07 03:20:11 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.