X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FSolverGit.pm;h=ff8a49460b6fca00b0741f72f8431edec063d939;hb=80b887f29b2ec71d025b4c266a1c26314758994c;hp=b1cb1ae97c41ccd371a8387b13f5f379abd21418;hpb=30ac717281ae224a9c117361ca941818adc69cf3;p=public-inbox.git diff --git a/lib/PublicInbox/SolverGit.pm b/lib/PublicInbox/SolverGit.pm index b1cb1ae9..ff8a4946 100644 --- a/lib/PublicInbox/SolverGit.pm +++ b/lib/PublicInbox/SolverGit.pm @@ -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