]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei: drop coderepo placeholders, submodule TODO
authorEric Wong <e@80x24.org>
Sun, 28 Mar 2021 09:01:23 +0000 (09:01 +0000)
committerEric Wong <e@80x24.org>
Sun, 28 Mar 2021 23:01:37 +0000 (23:01 +0000)
"lei blob" supports --git-dir and -C, and checks if the
current directory has a git directory associated with it.
It will likely support submodules in the future.

I'm inclined to believe declaring coderepos in a command-line
tool is needless clutter and users will rarely want to search
for blobs across different projects when on the command-line.

lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiBlob.pm

index a94941a995e8ad88b443de1e4ae1b5c607eee988..8a07a4c8fda50f1a71b363d0b49ff8625f073606 100644 (file)
@@ -172,15 +172,6 @@ our %CMD = ( # sorted in order of importance/use:
        'remove imported messages from IMAP, Maildirs, and MH',
        qw(exact! all jobs:i indexed), @c_opt ],
 
-# code repos are used for `show' to solve blobs from patch mails
-'add-coderepo' => [ 'DIRNAME', 'add or set priority of a git code repo',
-       qw(boost=i), @c_opt ],
-'ls-coderepo' => [ '[FILTER_TERMS...]',
-               'list known code repos', qw(format|f=s z), @c_opt ],
-'forget-coderepo' => [ 'DIRNAME',
-       'stop using repo to solve blobs from patches',
-       qw(prune), @c_opt ],
-
 'add-watch' => [ 'LOCATION', 'watch for new messages and flag changes',
        qw(import! kw|keywords|flags! interval=s recursive|r
        exclude=s include=s), @c_opt ],
index 8e610efdaaf33c6099246b1a765b3a66f01a4543..91098a9025ce333e0fe76de4a3aecc92aa56c9a8 100644 (file)
@@ -2,6 +2,7 @@
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 
 # "lei blob $OID" command
+# TODO: this doesn't scan submodules, but maybe it should
 package PublicInbox::LeiBlob;
 use strict;
 use v5.10.1;