X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=lib%2FPublicInbox%2FSearchIdx.pm;h=bdb84fc73dacf7bbfb1d463d386cdf466f1749ce;hb=23af251dd607c4e75ab1e68063f2c885c48cc035;hp=cbfe7816044535c398b3dbe3acb7907ebe19a447;hpb=8fda04081acde7053458023fde3b1c784cbcfc81;p=public-inbox.git diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index cbfe7816..bdb84fc7 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -263,10 +263,10 @@ sub index_diff ($$$) { while (defined($_ = shift @l)) { if ($in_diff && /^GIT binary patch/) { push @$xnq, $_; - while (@l && $l[0] =~ /^literal /) { + while (@l && $l[0] =~ /^(?:literal|delta) /) { # TODO allow searching by size range? # allows searching by exact size via: - # "literal $SIZE" + # "literal $SIZE" or "delta $SIZE" push @$xnq, shift(@l); # skip base85 and empty lines