Ignore every file except XX*

2020-06-11 Thread Daniel Sahlberg
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 th

Re: Ignore every file except XX*

2020-06-11 Thread Branko Čibej
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

Re: Ignore every file except XX*

2020-06-11 Thread Daniel Sahlberg
Hi, 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 forg

Re: Ignore every file except XX*

2020-06-11 Thread Branko Čibej
On 12.06.2020 07:30, Daniel Sahlberg wrote: > Hi, > > 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 y

Re: Ignore every file except XX*

2020-06-11 Thread Matt Simmons
Have you considered a pre-commit hook to deny anything not matching your rule? On Thu, Jun 11, 2020 at 11:21 PM Branko Čibej wrote: > On 12.06.2020 07:30, Daniel Sahlberg wrote: > > Hi, > > > > Thanks for your quick response! > > > > > > The way I solve a similar case is to set svn:ignore to