From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 3A83420601 for ; Tue, 16 Apr 2019 01:10:11 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/2] import: prefix 'inbox' with '-' to denote Inbox ref Date: Tue, 16 Apr 2019 01:10:10 +0000 Message-Id: <20190416011010.19020-3-e@80x24.org> In-Reply-To: <20190416011010.19020-1-e@80x24.org> References: <20190416011010.19020-1-e@80x24.org> List-Id: This is for consistency with other fields which follow this pattern w.r.t. field-naming when referring to internal fields. --- lib/PublicInbox/Import.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/PublicInbox/Import.pm b/lib/PublicInbox/Import.pm index fc4e72d..c775575 100644 --- a/lib/PublicInbox/Import.pm +++ b/lib/PublicInbox/Import.pm @@ -30,7 +30,7 @@ sub new { ident => "$name <$email>", mark => 1, ref => $ref, - inbox => $ibx, + -inbox => $ibx, path_type => '2/38', # or 'v2' lock_path => "$git->{git_dir}/ssoma.lock", # v2 changes this bytes_added => 0, @@ -178,7 +178,7 @@ sub _update_git_info ($$) { run_die([@cmd, 'update-server-info'], undef); ($self->{path_type} eq '2/38') and eval { require PublicInbox::SearchIdx; - my $ibx = $self->{inbox} || $git_dir; + my $ibx = $self->{-inbox} || $git_dir; my $s = PublicInbox::SearchIdx->new($ibx); $s->index_sync({ ref => $self->{ref} }); }; -- EW