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

Configure Feed

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

Fix template documentation comments (#610)

The variable is `Version`, not `Branch`, and if we're using the template
variable syntax, it should have the leading dot that it needs to.

author
Ian Kerins
committer
GitHub
date (Jul 10, 2023, 3:55 PM +0200) commit e2e8aede parent a176bde1
+6 -6
+2 -2
api.go
··· 555 555 CommitURLTemplate string 556 556 557 557 // The repository URL for getting to a file. Has access to 558 - // {{Branch}}, {{Path}} 558 + // {{.Version}}, {{.Path}} 559 559 FileURLTemplate string 560 560 561 561 // The URL fragment to add to a file URL for line numbers. has 562 - // access to {{LineNumber}}. The fragment should include the 562 + // access to {{.LineNumber}}. The fragment should include the 563 563 // separator, generally '#' or ';'. 564 564 LineFragmentTemplate string 565 565
+2 -2
grpc/v1/webserver.pb.go
··· 743 743 // URL template to link to the commit of a branch 744 744 CommitUrlTemplate string `protobuf:"bytes,7,opt,name=commit_url_template,json=commitUrlTemplate,proto3" json:"commit_url_template,omitempty"` 745 745 // The repository URL for getting to a file. Has access to 746 - // {{Branch}}, {{Path}} 746 + // {{.Version}}, {{.Path}} 747 747 FileUrlTemplate string `protobuf:"bytes,8,opt,name=file_url_template,json=fileUrlTemplate,proto3" json:"file_url_template,omitempty"` 748 748 // The URL fragment to add to a file URL for line numbers. has 749 - // access to {{LineNumber}}. The fragment should include the 749 + // access to {{.LineNumber}}. The fragment should include the 750 750 // separator, generally '#' or ';'. 751 751 LineFragmentTemplate string `protobuf:"bytes,9,opt,name=line_fragment_template,json=lineFragmentTemplate,proto3" json:"line_fragment_template,omitempty"` 752 752 // Perf optimization: priority is set when we load the shard. It corresponds to
+2 -2
grpc/v1/webserver.proto
··· 177 177 string commit_url_template = 7; 178 178 179 179 // The repository URL for getting to a file. Has access to 180 - // {{Branch}}, {{Path}} 180 + // {{.Version}}, {{.Path}} 181 181 string file_url_template = 8; 182 182 183 183 // The URL fragment to add to a file URL for line numbers. has 184 - // access to {{LineNumber}}. The fragment should include the 184 + // access to {{.LineNumber}}. The fragment should include the 185 185 // separator, generally '#' or ';'. 186 186 string line_fragment_template = 9; 187 187