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

Re: Ignore every file except XX*

From: Daniel Sahlberg <daniel.l.sahlberg_at_gmail.com>
Date: Mon, 15 Jun 2020 10:30:47 +0200

> > > At this point I'd rather wait for Daniel to answer my question and
> > > clarify his problem statement.
> >
> > I rather suspect that XX* and YY* were just general examples, not
> > concrete ones.
> So do I, but the solution I posted is generalizable, as you know.

These were indeed just general examples. In practice there will be more
than two patterns as well.

I must admit I haven't experimented much with the glob pattern (admittedly,
I suck at this!) but I have a feeling the complexity will increase rapidly
when the number combinations (and variations) increase.

I think a separate property that is evaluated at the same time as
svn:ignore is a lot easier to explain ("A file is ignored if the name
satisfies one pattern in the svn:ignore list and satisfies NO pattern in
the 'reverse of svn:ignore' property") than a convoluted regex. The
downside with a new property is that GUI implementors *may* want to
implement additional support in the GUI for optimum user experience.

/ Daniel
Received on 2020-06-15 10:31:03 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.