Skip to content

Commit 685a5d2

Browse files
plumb tenant id in zoekt-git-index
1 parent b51a233 commit 685a5d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/zoekt-git-index/main.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func run() int {
4545
isDelta := flag.Bool("delta", false, "whether we should use delta build")
4646
deltaShardNumberFallbackThreshold := flag.Uint64("delta_threshold", 0, "upper limit on the number of preexisting shards that can exist before attempting a delta build (0 to disable fallback behavior)")
4747
languageMap := flag.String("language_map", "", "a mapping between a language and its ctags processor (a:0,b:3).")
48+
tenantID := flag.Int("tenant_id", 0, "tenant ID to use for indexed repositories")
4849

4950
cpuProfile := flag.String("cpuprofile", "", "write cpu profile to `file`")
5051

@@ -75,6 +76,7 @@ func run() int {
7576

7677
opts := cmd.OptionsFromFlags()
7778
opts.IsDelta = *isDelta
79+
opts.RepositoryDescription.TenantID = *tenantID
7880

7981
var branches []string
8082
if *branchesStr != "" {

0 commit comments

Comments
 (0)