From 8c8bd22ec8c74a3bf66a611a2a0c2d4d76a42ddb Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 28 Mar 2021 09:01:23 +0000 Subject: [PATCH] lei: drop coderepo placeholders, submodule TODO "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 | 9 --------- lib/PublicInbox/LeiBlob.pm | 1 + 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index a94941a9..8a07a4c8 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -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 ], diff --git a/lib/PublicInbox/LeiBlob.pm b/lib/PublicInbox/LeiBlob.pm index 8e610efd..91098a90 100644 --- a/lib/PublicInbox/LeiBlob.pm +++ b/lib/PublicInbox/LeiBlob.pm @@ -2,6 +2,7 @@ # License: AGPL-3.0+ # "lei blob $OID" command +# TODO: this doesn't scan submodules, but maybe it should package PublicInbox::LeiBlob; use strict; use v5.10.1; -- 2.44.0