From: Florian Köberle Date: Mon, 09 Jun 2008 17:11:30 GMT Subject: Re: [JGIT PATCH v3 0/23] Implementation of a file tree iteration using ignore rules. Message-ID: <484D6442.7070408@web.de> In-Reply-To: <200806082328.49632.robin.rosenberg.lists@dewire.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFITWRC59ca4mzhfxMRAjdrAJ9/6VDQOOHdm0WGP/W+l84LiKrOhQCfdkJn DEcnz0WTzockGJ+w9S1/4xk= =/PpE -----END PGP SIGNATURE-----