[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: Branko Čibej <brane_at_apache.org>
Date: Thu, 11 Jun 2020 11:42:39 +0200

On 11.06.2020 10:46, Daniel Sahlberg wrote:
> Hi,
>
> Not sure if this belongs in users or in dev so I follow the guidelines
> and post here first.
>
> I would like to svn:ignore every file (in a certain path) except files
> starting with XX or YY.
>
> This question seems to have been asked in 2006 ("inverse of svn:ignore
> property"). I've tried to trace the code and it seems nothing came out
> of this.
>
> Considering there has been 14 years of development, is there another
> way to solve this nowadays?

There's no explicit "inverse of svn:ignore" property, or any magic
syntax that would invert the match.

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.

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.

-- Brane
Received on 2020-06-11 11:42:43 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.