Alternate glob matcher for .bzrignore

Martin Pool mbp at sourcefrog.net
Sun Jan 8 23:31:58 GMT 2006


On Mon, 2006-01-09 at 10:21 +1100, Robert Collins wrote:

> Do we really want to handle directories differently? Last time that came
> up I recall a solid trouncing in my direction for using '/' like that -
> like rsync does.

Good question.

I think the objections before were not so much that they handled
directories differently, but rather than using '/' to indicate
'everything within' both quite subtle, and has few or no precedents in
unix *and* is different to the one tool, rsync, that does use it.

The fact that * matches only single directory components is pretty well
established in Unix, and having ** match any number of whole directory
components is moderately well established.  

It may be a bit surprising that '**.tmp' doesn't match .tmp within
directories, and you need '**/*.tmp'.  

-- 
martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060109/7959f60d/attachment.pgp 


More information about the bazaar mailing list