From 9650088fb8ab70369c8221c8b623a7ea3b69e9a0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 28 Mar 2023 02:59:01 +0000 Subject: cindex: simplify some internal data structures We'll rely more on local-ized `our' globals rather than hashref fields. The former is more resistant to typos and can be checked at compile-time earlier via `perl -c'. The {-internal} field is also renamed to {-cidx_internal} in case to reduce confusion within a large code base. --- script/public-inbox-cindex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') diff --git a/script/public-inbox-cindex b/script/public-inbox-cindex index fb906bad..4c9136cf 100755 --- a/script/public-inbox-cindex +++ b/script/public-inbox-cindex @@ -79,7 +79,7 @@ EOM for my $gd (@git_dirs) { my $cd = "$gd/public-inbox-cindex"; my $cidx = PublicInbox::CodeSearchIdx->new($cd, { %$opt }); - $cidx->{-internal} = 1; + $cidx->{-cidx_internal} = 1; @{$cidx->{git_dirs}} = ($gd); $cidx->cidx_run; } -- cgit v1.2.3-24-ge0c7