diff options
author | Eric Wong <e@80x24.org> | 2023-11-28 14:56:27 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-29 02:13:26 +0000 |
commit | a8e3c2ad544f9f78ebbe91bfe0dece0e2d385322 (patch) | |
tree | 7f304b6f51c9f5babfb2b687c4b6e128efb7dbec /lib/PublicInbox/CodeSearch.pm | |
parent | 83655d5dd1679e7c44586aaae4e16a2bffdeaa1a (diff) | |
download | public-inbox-a8e3c2ad544f9f78ebbe91bfe0dece0e2d385322.tar.gz |
The HTML is still extremely rough, but links seem to be mostly working...
Diffstat (limited to 'lib/PublicInbox/CodeSearch.pm')
-rw-r--r-- | lib/PublicInbox/CodeSearch.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/PublicInbox/CodeSearch.pm b/lib/PublicInbox/CodeSearch.pm index 7d7f6df6..7c0dd063 100644 --- a/lib/PublicInbox/CodeSearch.pm +++ b/lib/PublicInbox/CodeSearch.pm @@ -341,4 +341,12 @@ EOM } } +sub repos_sorted { + my $pi_cfg = shift; + my @recs = map { [ 0, $_ ] } @_; # PublicInbox::Git objects + my @todo = @recs; + $pi_cfg->each_cindex(\&load_commit_times, \@todo); + @recs = sort { $b->[0] <=> $a->[0] } @recs; +} + 1; |