Skip to content

zoekt-indexserver: Per-Entry Branch Config#1011

Open
dharesign wants to merge 1 commit intosourcegraph:mainfrom
dharesign:indexserver-branch-support
Open

zoekt-indexserver: Per-Entry Branch Config#1011
dharesign wants to merge 1 commit intosourcegraph:mainfrom
dharesign:indexserver-branch-support

Conversation

@dharesign
Copy link
Contributor

Allow specifying which branches to index per config entry via the Branches field (comma-separated, e.g. "main,release-*", default HEAD) and BranchPrefix (e.g. "refs/tags/" to index tags instead of branches).

These values are persisted as zoekt.branches-to-index and zoekt.branch-prefix in each repo's git config by the mirror commands, then read at index time and passed to zoekt-git-index as -branches and -prefix flags.

Fixes #432.

Allow specifying which branches to index per config entry via the
Branches field (comma-separated, e.g. "main,release-*", default HEAD)
and BranchPrefix (e.g. "refs/tags/" to index tags instead of branches).

These values are persisted as zoekt.branches-to-index and
zoekt.branch-prefix in each repo's git config by the mirror commands,
then read at index time and passed to zoekt-git-index as -branches and
-prefix flags.

Fixes sourcegraph#432.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

zoekt-indexserver: Support Per-Repository Branch Selection

1 participant