[RFC] globbing styles

Kent Gibson warthog618 at gmail.com
Sat Nov 11 15:00:00 GMT 2006


Hi all,

I'm looking into replacing the fnmatch based globbing used in ignores
using a globbing engine previously developed by Jan Hudec.  The
globbing engine implements shell style globbing, plus some extensions
such as ** and ***.
That the core globbing style should be as per shell is generally
agreed on (I think) - it's the extensions that I'm unsure about.
Jan prefers zsh style and has implemented the ** and *** in zsh style
(i.e. ** matches''|*|*/*|*/*/*| where * never matches a leading '.').
However there is a comment in workingtree.py suggesting rsync filter
style (i.e. ** matches any character - including '/' and leading '.'),
from which I conclude there are differing opinions out there as to how
we should extend globbing.

So my question is - which style of globbing extensions, if any, do we
want to support for ignore patterns?

Cheers,
Kent.




More information about the bazaar mailing list