]> Sergey Matveev's repositories - public-inbox.git/commitdiff
inbox: remove TODO item for msg_by_path
authorEric Wong <e@yhbt.net>
Tue, 4 Feb 2020 04:44:24 +0000 (04:44 +0000)
committerEric Wong <e@yhbt.net>
Tue, 4 Feb 2020 21:39:55 +0000 (21:39 +0000)
It's an old function which only gets called by inboxes w/o
SQLite indices.

lib/PublicInbox/Inbox.pm

index accfd97472ed30be40685ee8724918b39bba9dd7..a5849a611165dc152a4946fb14e2a30dbe121bf5 100644 (file)
@@ -305,9 +305,9 @@ sub nntp_usable {
        $ret;
 }
 
+# for v1 users w/o SQLite only
 sub msg_by_path ($$;$) {
        my ($self, $path, $ref) = @_;
-       # TODO: allow other refs:
        my $str = git($self)->cat_file('HEAD:'.$path, $ref);
        $$str =~ s/\A[\r\n]*From [^\r\n]*\r?\n//s if $str;
        $str;