简体   繁体   中英

Pattern matching characters for svn:ignore

Making echo of a question around the web:

Is the syntax for svn:ignore patterns documented somewhere? The only pattern matching character I could find in the SVN book under 'svn:ignore' is '*'.

Subversion Book: 'svn:ignore'

In particular I want to match a 32 character string (md5 hash named directory).

It seems to be documented here .

Edit: ...and to answer your specific question, you can use "?" to match a single character.

From what I saw at the page you linked and the Ignoring files via cvsignore page, it looks like it understand only glob syntax, ie. * for any string and ? for a character.

If you need to match a 32 character string, a possible solution might be to put 32 ? signs together...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM