]> Sergey Matveev's repositories - public-inbox.git/commit - MANIFEST
search: do not index base-85 binary patches
authorEric Wong <e@80x24.org>
Mon, 20 Jun 2022 19:27:30 +0000 (19:27 +0000)
committerEric Wong <e@80x24.org>
Tue, 21 Jun 2022 10:39:11 +0000 (10:39 +0000)
commit8fda04081acde7053458023fde3b1c784cbcfc81
tree330f61bf4cb414a778d6732f4b171686361be185
parentd0079a334fe2b769e4f81d6bd3c7e4346a8fa2b2
search: do not index base-85 binary patches

Base-85 binary patches generated by git lead to many false
positives, so skip over gibberish words which may occur in them.
To avoid regressions in search results, continue to allow
searching for exact size matches (via "literal $SIZE") and the
phrase "GIT binary patch" for the mere presence of a binary
patch.
MANIFEST
TODO
lib/PublicInbox/SearchIdx.pm
t/data/binary.patch [new file with mode: 0644]
t/search.t