Skip to content

Allow Zoekt to index/search non-default branches

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Currently searchnig a non-default branch doesn't work. An example from staging: https://staging.gitlab.com/search?search=k.*netes&nav_source=navbar&project_id=8703907&group_id=11203620&search_code=true&repository_ref=patch-1

Screenshots

SCR-20230330-k08

Solution

We should allow users to select a set of named branches to index. Zoekt has a limit of 64 branches that can be indexed so we won't be able to just automatically index all branches but supporting the ability to specify branches to index will be useful for many customers that have workflows that involve multiple named branches (eg. develop, main, release, ...).

Edited by 🤖 GitLab Bot 🤖