[patch] improved ignore pattern matching (#57637)

Jan Hudec bulb at ucw.cz
Tue Nov 28 06:59:56 GMT 2006


On Tue, Nov 28, 2006 at 08:20:52AM +0800, Kent Gibson wrote:
> Just to confirm, and without going into the details of the regex to
> translate it to (sorry I'm pushed for time), is it fair to say we want
> the swallowing of a trailing '/' for the case where '**' matches the
> empty string to only occur where the '**' is at the beginning of a
> component?
> For all other occurances of '**' we fall back to the "**" matches
> anything.
> i.e. foo**/CVS will match foobar/CVS but not fooCVS.
> But foo/**/CVS will match foo/CVS as well as foo/bar/CVS.

That would be a sane semantics.

Though you did not say that foo**/CVS matches foobar/baz/CVS. In zsh it
would NOT, because ** is not recognized except as whole component. But
we surely can recognize it in such case.

--------------------------------------------------------------------------------
                  				- Jan Hudec `Bulb' <bulb at ucw.cz>




More information about the bazaar mailing list