fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

Select the types of activity you want to include in your feed.

Use repository URL as base for naming the shard.

Change-Id: If297c8ef39fc95b8414490990fc60725d1fce434

+7
+7
build/builder.go
··· 20 20 "fmt" 21 21 "io/ioutil" 22 22 "log" 23 + "net/url" 23 24 "os" 24 25 "os/exec" 25 26 "path/filepath" ··· 137 138 return "", err 138 139 } 139 140 141 + if u := o.RepositoryDescription.URL; u != "" { 142 + parsed, _ := url.Parse(u) 143 + if parsed != nil { 144 + abs = url.QueryEscape(filepath.Join(parsed.Host, parsed.Path)) 145 + } 146 + } 140 147 return filepath.Join(o.IndexDir, 141 148 fmt.Sprintf("%s_v%d.%05d.zoekt", strings.Replace(abs, "/", "_", -1), zoekt.IndexFormatVersion, n)), nil 142 149 }