Skip to content

Search backend: use efficient implementation for repo:contains.file()

Warren Gifford requested to merge cc/efficient-repo-contains-file into main

Created by: camdencheek

This just updates our repo:contains.file() predicate to hook into the more efficient machinery we already have for repohasfile.

Note that this does not cover the repo:contains(file:xyz) case since we do not currently have an efficient implementation of a "repo contains content" filter.

Test plan

Added plan tests to show that we generate the same TextPatternInfo with repohasfile and repo:contains.file()

Merge request reports

Loading