about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2023-03-28 02:59:01 +0000
committerEric Wong <e@80x24.org>2023-03-29 04:36:50 +0000
commit9650088fb8ab70369c8221c8b623a7ea3b69e9a0 (patch)
tree2eb1df1cc1cc5343316f7f9dfe485312ef6224b5 /script
parent2a41e811ad89a026cf7824228a053bd623fd7b7f (diff)
downloadpublic-inbox-9650088fb8ab70369c8221c8b623a7ea3b69e9a0.tar.gz
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.
Diffstat (limited to 'script')
-rwxr-xr-xscript/public-inbox-cindex2
1 files changed, 1 insertions, 1 deletions
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;
         }