Subject: Re: [JGIT PATCH v3 0/23] Implementation of a file tree iteration using ignore rules.

From: Florian Köberle <[email-masked]>
Date: Mon, 09 Jun 2008 19:11:30 +0200

Robin Rosenberg wrote:
| Oh, it does. [:alpha:] is a character class, like a-z. So you use
[[:alpha:]], which is what git as well as bash
| understands.
Naturally I will then implement the POSIX character classes as listed at
(http://en.wikipedia.org/wiki/Regular_expression#POSIX_character_classes)
for FileNameMatcher too.

|
|> The fnmatch function of the python module fnmatch
|> (http://docs.python.org/lib/module-fnmatch.html) does not support
|> :alpha: too.
|>
|> example:
|> $python
|>  >>> from fnmatch import fnmatch
|>  >>> fnmatch("a","[:alpha:]")
|> False
| Hmm. Odd:
[...]
|>>> fnmatch("a","[:alpha:]")
| True
Oops.. of course the output was True for me too, but for
fnmatch("b","[:alpha:]") it wasn't.

Best Regards,
Florian Köberle