6

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).

levhita
  • 2,161
  • 2
  • 21
  • 31

2 Answers2

6

It seems to be documented here.

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

JesperE
  • 63,317
  • 21
  • 138
  • 197
  • It says "File pattern matching is a bit more complex than what we've described here, but this basic usage level tends to suit the majority of Subversion users." Is that really a complete list? – Richard Smith Apr 17 '14 at 18:14
3

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...

PhiLho
  • 40,535
  • 6
  • 96
  • 134