Closed brendan-kellam closed 2 weeks ago
nit: scroll bars in repos page seem broken on windows
what does the "+ 2" here mean? If it's supposed to reference how many branch hits there are, would it be better to instead mention this in the search results at the top (ex. Found X matches in Y files across Z branches)? It's not really intuitive what this number means at first glance
what does the "+ 2" here mean? If it's supposed to reference how many branch hits there are, would it be better to instead mention this in the search results at the top (ex. Found X matches in Y files across Z branches)? It's not really intuitive what this number means at first glance
We could surface a "Found X matches in Y files across Z branches" at the top, but we still probably need a per-match UI since different matches may exist in a different number of branches.
The following PR adds support for indexing multiple revisions (branches & tags) of a given GitHub, GitLab, or Gitea repository. Configuration of which revisions are included is made via the
revisions
property:The branch / tag values support glob patterns. In this case, we will match against the
main
branch + all branches starting withrelease/
, as well as all tags that match the semverv*.*.*
format. The branches / tags in a given repo (in this case,org/repoa
andorg/repob
) and that match a glob pattern will be included during indexing. Therevisions
object is similarly supported for GitLab and GItea.To search a particular revision, the
revision:
orrev:
qualifier can be included in a query. For example:The original zoekt
branch:
orb:
qualifier may also be used.Fixes #29