]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/SolverGit.pm
search: replace ->query with ->mset
[public-inbox.git] / lib / PublicInbox / SolverGit.pm
index b1cb1ae97c41ccd371a8387b13f5f379abd21418..ff8a49460b6fca00b0741f72f8431edec063d939 100644 (file)
@@ -229,10 +229,9 @@ sub find_extract_diffs ($$$) {
                }
        }
 
-       my $msgs = $srch->query($q, { relevance => 1 });
-
+       my $mset = $srch->mset($q, { relevance => 1 });
        my $diffs = [];
-       foreach my $smsg (@$msgs) {
+       for my $smsg (@{$srch->mset_to_smsg($ibx, $mset)}) {
                my $eml = $ibx->smsg_eml($smsg) or next;
                $eml->each_part(\&extract_diff,
                                [$self, $diffs, $pre, $post, $ibx, $smsg], 1);
@@ -594,7 +593,7 @@ sub new {
 }
 
 # recreate $oid_want using $hints
-# hints keys: path_a, path_b, oid_a
+# hints keys: path_a, path_b, oid_a (note: `oid_b' is NOT a hint)
 # Calls {user_cb} with: [ ::Git object, oid_full, type, size, di (diff_info) ]
 # with found object, or undef if nothing was found
 # Calls {user_cb} with a string error on fatal errors