From 5290ed2889d7a62ce3e41e4ff08efaefd2727eda Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 8 Oct 2022 08:24:48 +0000 Subject: www_coderepo: allow searching one extindex|inbox I'm not sure how to best make a UI for one coderepo to many inboxes/extindices, yet; but at least allow a simple 1:1 mapping, for now. This ensures /$CODEREPO/$OID/s/ can work as effectively as /$INBOX/$OID/s/ when looking for emails associated with a git commit. --- lib/PublicInbox/Config.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/PublicInbox/Config.pm') diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index a430cd5c..c27928de 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -404,6 +404,11 @@ sub repo_objs { push @repo_objs, $repo if $repo; } if (scalar @repo_objs) { + require Scalar::Util; + for (@repo_objs) { + push @{$_->{-ibxs}}, $ibxish; + Scalar::Util::weaken($_->{-ibxs}->[-1]); + } $ibxish->{-repo_objs} = \@repo_objs; } else { delete $ibxish->{coderepo}; -- cgit v1.2.3-24-ge0c7