]> Sergey Matveev's repositories - public-inbox.git/commit
lei: fix globbing semantics to match end-of-filename
authorEric Wong <e@80x24.org>
Tue, 1 Nov 2022 09:36:12 +0000 (09:36 +0000)
committerEric Wong <e@80x24.org>
Wed, 2 Nov 2022 17:04:22 +0000 (17:04 +0000)
commit63e976b54f8bf8d5e9bc918b081ae9417f653c60
treecb72fd2f9172921c8ac6618e40b8cbc519698c4a
parentefac06297ad19bdda330dc1c1de00f78b4ef9d39
lei: fix globbing semantics to match end-of-filename

Globs such as `*/foo' should not match `*/foobar'.  I noticed
this while adding glob support to public-inbox-clone.

This may subtly break some existing cases, but there aren't many
lei users, yet, and globbing semantics should match what most
other glob-using programs, do...

We'll also make `lei ls-mail-sync' behave more consistently with
`lei ls-external', as far as the basename matching fallback
goes.
lib/PublicInbox/LeiExternal.pm
lib/PublicInbox/LeiLsExternal.pm
lib/PublicInbox/LeiLsMailSync.pm