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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Robin Rosenberg <robin.rosenberg.lists@...>
Cc: <git@...>
Date: Monday, June 9, 2008 - 1:11 pm

-----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-----
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [JGIT PATCH v3 0/23] Implementation of a file tree itera..., Florian Köberle, (Mon Jun 9, 1:11 pm)
[JGIT PATCH v3 21/23] Formatted Repository class., Florian Koeberle, (Fri May 23, 4:34 pm)
Re: [JGIT PATCH v3 21/23] Formatted Repository class., Robin Rosenberg, (Thu Jun 5, 8:23 pm)
[JGIT PATCH v3 03/23] Added the interface FilePattern., Florian Koeberle, (Fri May 23, 4:34 pm)
[JGIT PATCH v3 15/23] Added class AddRulesFactory., Florian Koeberle, (Fri May 23, 4:34 pm)
[JGIT PATCH v3 12/23] Added the class AddRuleListFactory., Florian Koeberle, (Fri May 23, 4:34 pm)
[JGIT PATCH v3 08/23] Added the class IgnoreRuleListFactory., Florian Koeberle, (Fri May 23, 4:34 pm)
[JGIT PATCH v3 13/23] Formatted Constants class., Florian Koeberle, (Fri May 23, 4:34 pm)
[JGIT PATCH v3 17/23] Added class LightFileTreeIterable., Florian Koeberle, (Fri May 23, 4:34 pm)
[JGIT PATCH v3 05/23] Added the iterface Rules., Florian Koeberle, (Fri May 23, 4:34 pm)
Re: [JGIT PATCH v3 05/23] Added the iterface Rules., Robin Rosenberg, (Thu Jun 5, 8:22 pm)
[JGIT PATCH v3 06/23] Added the class FileNamePattern., Florian Koeberle, (Fri May 23, 4:34 pm)
Re: [JGIT PATCH v3 06/23] Added the class FileNamePattern., Robin Rosenberg, (Thu Jun 5, 8:22 pm)
[JGIT PATCH v3 07/23] Added the class FilePathPattern., Florian Koeberle, (Fri May 23, 4:34 pm)
[JGIT PATCH v3 04/23] Added the class Rule., Florian Koeberle, (Fri May 23, 4:34 pm)