Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(Visual)SVN ignore files by Regex

Tags:

svn

visualsvn

I need to exclude files with the following pattern:

ProjectFoo.Data[0-9]{14}.lgp

How can I use RegEx for (Visual)SVN ignore list?

like image 634
Gabriël Avatar asked Dec 22 '22 13:12

Gabriël


1 Answers

The subversion ignore list doesn't support regular expressions. They are implemented as glob/file patterns.

These patterns don't support the {14} repeat construct.

The pattern

ProjectFoo.Data[0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9].lgp

should do what you ask, but I would recommend using something like ProjectFoo.Data[0-9]*.lgp as that would be 'good enough'.

like image 103
Bert Huijben Avatar answered Jan 08 '23 19:01

Bert Huijben