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

Re: [DESIGN] Enhanced svn:ignore syntax

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2006-01-18 00:11:47 CET

On Tue, Jan 17, 2006 at 09:19:07PM +0100, Branko Čibej wrote:
> Hm. There'se already a well-established syntax for decorating regular
> expressions (or globs, in our case); sed, perl, etc. use it; so maybe
> the flags should follow the pattern, e.g.,
>
> *.cat/!
>
> (One feature that lots of people will come shouting for are
> case-insensitive ignore patterns, and perhaps true regular expressions
> in the svn:ignore prop.)
>

I was going to say almost exactly the same thing.

Do we have access to a regular expression library at the point we parse
svn:ignore? If we did, we could perhaps use a leading '/' to indicate
a real regex, resulting in something like:

/.*\.[a-z]/if

to match any file (f) with a single-character extension, regardless of
case (i). We might imply ^ and $ at the start and end of the pattern,
since the alternative is more error-prone.

Though perhaps true regex support is a solution in search of a problem:
do we have a clear idea about what people would actually like to do,
that they can't now?

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jan 18 01:31:11 2006

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