(Visual)SVN ignore files by Regex

前端 未结 3 1171
执笔经年
执笔经年 2021-01-19 04:22

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?

3条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-19 04:59

    The subversion ignore list don'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'.

提交回复
热议问题