This ensures the /all/ extindex can have auto-associations
with coderepos just like normal inboxes do.
---
 lib/PublicInbox/CodeSearch.pm | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lib/PublicInbox/CodeSearch.pm b/lib/PublicInbox/CodeSearch.pm
index 7c0dd063..5c5774cf 100644
--- a/lib/PublicInbox/CodeSearch.pm
+++ b/lib/PublicInbox/CodeSearch.pm
@@ -339,6 +339,15 @@ EOM
                my $s = $git->{ibx_score};
                @$s = sort { $b->[0] <=> $a->[0] } @$s if $s;
        }
+       my $ALL = $pi_cfg->ALL or return;
+       my @alls_gits = sort {
+               scalar @{$b->{ibx_score} // []} <=>
+                       scalar @{$a->{ibx_score} // []}
+       } values %$coderepos;
+       my $gits = $ALL->{-repo_objs} //= [];
+       push @$gits, @alls_gits;
+       my $cr_score = $ALL->{-cr_score} //= {};
+       $cr_score->{$_->{nick}} //= scalar(@{$_->{ibx_score}//[]}) for @$gits;
 }
 
 sub repos_sorted {

Reply via email to