[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: Fri, 12 Jun 2020 07:30:08 +0200


Thanks for your quick response!

> The way I solve a similar case is to set svn:ignore to '*', i.e., to
> ignore everything, then just 'svn add' the files I want under version
> control. It's not ideal, as you'd miss the files you're interested in.

Already doing this. But sometimes we forget to 'svn add' a new file which
then doesn't show up as modified. User error, surely, but if the mistake
can be avoided :-)

> About feature design -- unfortunately we can't just invent a syntax that
> would invert the meaning of the glob patterns in svn:ignore, as that
> would break backward compatibility. Any ideas for a solution would be
> most welcome.

Exactly my thoughts. The only solution I see is to add a new property
svn:unignore which is applied after (or in conjunction with) the svn:ignore
property. A file is ignored if it matches the svn:ignore glob pattern AND
NOT matches the svn:unignore glob pattern. If svn:unignore is empty (or
non-existent), the behaviour should be exactly the same as today.

The code should be reasonably simple (but I have not analyzed if it would
affect anything in the public interface) - only question if maintainers
think a new property is a good idea.

/ Daniel
Received on 2020-06-12 07:30:33 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.