[patch] improved ignore pattern matching (#57637)

Kent Gibson warthog618 at gmail.com
Sun Nov 26 15:45:51 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



John Arbash Meinel wrote:
>
>
> My personal preference would be to support the following syntax:
>
> ? => Match any single character except '/' ie '[^/]' * => Match 0
> or more characters except '/' ie '[^/]*' ** => Match 0 or more
> characters ie '.*' RE: => A prefix which lets you get as crazy as
> you want, except for group matches as mentioned by Jan.
>
> This isn't 100% compatible with shell, but shell is trying to do
> *inclusion*, while we are trying to do *exclusion*.
>
> So when do you 'ls *', you typically don't want to see dot files.
> But if you did "bzr ignore '*'" you typically *would* want to
> ignore dot files.
So ignore is more like 'ls -a *'.
Ok, good point - I could certainly live with that proposal.

>
>
>
> I think the proposed patch gets very close to this. And I'm sorry I
>  haven't spent more time looking over it. Last week was
> Thanksgiving here in the US, and the week before was a conference.
> I'll try and look closer on Monday.
>
Ok.  If I get a few moments I'll implement your proposal.
Should be a pretty minor change.

Cheers,
Kent.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFabaugoxTFTi1P8QRAvdlAJ4+uxuY7p/bINXpwTqEcxo37PsDIgCfa5H+
vTe4TWXlZzBHquVjXx3QA80=
=BUq1
-----END PGP SIGNATURE-----




More information about the bazaar mailing list