aboutsummaryrefslogtreecommitdiff
path: root/templates/_ref_query.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-31 00:35:29 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-31 00:35:29 +0800
commit1d36ef43c2d6c2f9b106821ac04552d359f47116 (patch)
tree561ebf98fde70403ba8416aa9fc15a46b928fe9f /templates/_ref_query.tmpl
parentmandoc in Makefile and forge.5 (diff)
downloadforge-1d36ef43c2d6c2f9b106821ac04552d359f47116.tar.gz
forge-1d36ef43c2d6c2f9b106821ac04552d359f47116.tar.zst
forge-1d36ef43c2d6c2f9b106821ac04552d359f47116.zip
Use ref_query for ?branch=x, etc
Diffstat (limited to '')
-rw-r--r--templates/_ref_query.tmpl3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/_ref_query.tmpl b/templates/_ref_query.tmpl
new file mode 100644
index 0000000..2f78955
--- /dev/null
+++ b/templates/_ref_query.tmpl
@@ -0,0 +1,3 @@
+{{- define "ref_query" -}}
+{{- if .ref_type -}}?{{- .ref_type -}}={{- .ref_name -}}{{- end -}}
+{{- end -}}