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

Re: [PATCH] Experimental svn diff -w

From: Gareth McCaughan <gareth.mccaughan_at_pobox.com>
Date: 2006-02-04 14:32:45 CET

On Saturday 04 February 2006 01:09, Jim Blandy wrote:

> Have you tried a normalization function which simply replaces all
> whitespace sequences with a single space? Deleting whitespace in most
> programming languages concatenates identifiers, which is a change
> people would usually like to know about.
>
> Of course, that wouldn't help us in our current space-before-paren
> situation.

If there were a regex engine (let's say PCRE, for definiteness)
built into Subversion then you could do

    svn diff --normalize-by-regex '\s+(\W)' '\1' \
             --normalize-by-regex '(\W)\s+' '\1'

to eliminate all whitespace that doesn't have identifier characters
on both sides.

-- 
Gareth McCaughan
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Feb 4 14:33:16 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.