]> git.ipfire.org Git - thirdparty/public-inbox.git/commitdiff
lei_mirror: describe why the {ibx} field is used
authorEric Wong <e@80x24.org>
Mon, 13 Mar 2023 12:00:20 +0000 (12:00 +0000)
committerEric Wong <e@80x24.org>
Mon, 13 Mar 2023 12:45:54 +0000 (12:45 +0000)
I forgot why that hunk of code was needed :x, so maybe others
will find the comment helpful, too.

lib/PublicInbox/LeiMirror.pm

index c148ebfd6a4b5b11fd29d049d5403cd7425a85d3..d878f1e488f97bf447b3722fc15d410ff85a9a70 100644 (file)
@@ -194,7 +194,7 @@ sub _write_inbox_config {
                die "open($f): $!";
        }
        my $cfg = PublicInbox::Config->git_config_dump($f, $self->{lei}->{2});
-       my $ibx = $self->{ibx} = {};
+       my $ibx = $self->{ibx} = {}; # for indexing
        for my $sec (grep(/\Apublicinbox\./, @{$cfg->{-section_order}})) {
                for (qw(address newsgroup nntpmirror)) {
                        $ibx->{$_} = $cfg->{"$sec.$_"};