]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei q: drop "oid" output format
authorEric Wong <e@80x24.org>
Mon, 25 Jan 2021 01:18:54 +0000 (17:18 -0800)
committerEric Wong <e@80x24.org>
Tue, 26 Jan 2021 18:51:31 +0000 (18:51 +0000)
The default deduplication command-line arguments would be
non-sensical for such an option and probably confusing.  It
doesn't seem worth the code to support OID-only output when it's
easy enough to use one of the JSON formats to extract the same
info.

We also don't have OIDs if using remotes, and the
to-be-implemented memoization will be optional.

lib/PublicInbox/LEI.pm
lib/PublicInbox/LeiOverview.pm

index 378113e8446a4179ef1ac78456004541d0b53677..09eac58c8a8592a90d4bad778001d3bef2489da8 100644 (file)
@@ -200,7 +200,8 @@ my %OPTDESC = (
                        'message/object output format' ],
 'mark  format|f=s' => $stdin_formats,
 'forget        format|f=s' => $stdin_formats,
-'q     format|f=s' => [ 'OUT|maildir|mboxrd|mboxcl2|mboxcl|html|oid|json',
+'q     format|f=s' => [
+       'OUT|maildir|mboxrd|mboxcl2|mboxcl|html|json|jsonl|concatjson',
                'specify output format, default depends on --output'],
 'ls-query      format|f=s' => $ls_format,
 'ls-external   format|f=s' => $ls_format,
index 880c7acccb09f7d86c5169f9195483184217a6b8..ea35871cc5b73b0827f276c41a7ed2aa962fa4e8 100644 (file)
@@ -286,10 +286,6 @@ sub ovv_each_smsg_cb { # runs in wq worker usually
                                $buf = '';
                        }
                }
-       } elsif ($self->{fmt} eq 'oid') {
-               sub {
-                       my ($smsg, $mitem) = @_;
-               }
        } # else { ...
 }