]> Sergey Matveev's repositories - public-inbox.git/commit
lei_saved_search: expand only/include/exclude to absolute paths
authorEric Wong <e@80x24.org>
Thu, 1 Dec 2022 11:21:32 +0000 (11:21 +0000)
committerEric Wong <e@80x24.org>
Fri, 2 Dec 2022 08:07:41 +0000 (08:07 +0000)
commit7f70bf3c6aab60f494842504e1267e719515430b
tree7f56bd5cd06cf6c790fc68dc96b14e651af37399
parent3f7bd6ba4d30f16ef95af9121ad8fe7b47a4f5f7
lei_saved_search: expand only/include/exclude to absolute paths

While users may specify relative paths for convenience on the
command-line, absolute paths are required for `lei up' since
that (especially `lei up --all') could run from anywhere.

Note that we need to do this when parsing the command-line
options, since shortcuts for URL matching on URL path components
are allowed for `lei q', and those same shortcuts may remain
in effect across to `lei up' as the underlying external may
be moved to a different URI host.
lib/PublicInbox/LeiQuery.pm
lib/PublicInbox/LeiXSearch.pm
t/lei-q-save.t