aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/vcs
diff options
context:
space:
mode:
authorMarco Elver <elver@google.com>2025-06-06 16:38:12 +0200
committerMarco Elver <elver@google.com>2025-06-06 17:10:09 +0000
commit4826c28ef2aca1ee7dba7111e48d3b6a9c83d9a8 (patch)
tree74ea13ee97930cf1a5edb9575b056886cb4ea0ae /pkg/vcs
parentf61267d4e538b7fcc9916bc638123227eec8df0e (diff)
pkg: restore vcs.TreeLink and html.SetGlobSearchPath
This partially reverts commit 43f51a00700e5960fc890e6c3d596846757bf29d to restore vcs.TreeLink and html.SetGlobSearchPath. This broke internal code.
Diffstat (limited to 'pkg/vcs')
-rw-r--r--pkg/vcs/vcs.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/vcs/vcs.go b/pkg/vcs/vcs.go
index 06fd62671..b14fbdcbf 100644
--- a/pkg/vcs/vcs.go
+++ b/pkg/vcs/vcs.go
@@ -369,6 +369,11 @@ func CommitLink(url, hash string) string {
return link(url, hash, "", 0, 0)
}
+// Used externally - do not remove.
+func TreeLink(url, hash string) string {
+ return link(url, hash, "", 0, 1)
+}
+
func LogLink(url, hash string) string {
return link(url, hash, "", 0, 2)
}