- Searching across different releases
- Searching through feature branches during development
- Tracking changes across multiple maintenance branches simultaneously
Configuration
Multi-branch indexing is currently limited to 64 branches and tags. Please see this issue for more details.
revisions.branches and revisions.tags arrays. Glob patterns are supported. For example:
branches and tags array will be indexed.
Search syntax
To search branches other than the default, therev: prefix can be used followed by the branch (or tag) name:
| Example | Explanation |
|---|---|
rev:feature/foo repo:A useEffect | Search for /useEffect/ on branch feature/foo in repo A |
rev:feature/foo useEffect | Search for /useEffect/ on branch feature/foo across all repos |
rev:feature/ useEffect | Search for /useEffect/ on branches that contain feature/ across all repos |
rev:feature/a rev:feature/b foo | Search for /foo/ on branches feature/a and feature/b |
rev:feature/ -rev:feature/a foo | Search for /foo/ on branches that contain feature/ except for feature/a across all repos |
rev:*:
| Example | Explanation |
|---|---|
rev:* repo:A "error message" | Search for /error message/ across all branches in repo A |
rev:* "error message" | Search for /error message/ across all branches and all repos |
refs/heads/orrefs/tags/can be included to fully qualify a branch or a tag, respectively. E.g.,rev:refs/heads/foowill search the branchfoo, whilerev:refs/tags/foowill search the tagfoo.rev:does not support regular expressions or glob patterns. It uses a simplecontainscall between the branch name and the pattern. See here.
Platform support
| Platform | Multi-branch indexing support |
|---|---|
| GitHub | ✅ |
| GitLab | ✅ |
| Bitbucket Cloud | ✅ |
| Bitbucket Data Center | ✅ |
| Gitea | ✅ |
| Gerrit | ✅ |
| Generic git host | ✅ |

