summaryrefslogtreecommitdiff
path: root/templates/tree.nex.txt
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2023-11-14 21:53:09 -0700
committertjp <tjp@ctrl-c.club>2023-11-14 21:53:09 -0700
commit77725e02cc964f980465b158bb86c4061e6bfcca (patch)
treee6e2ae135b08ff82d3244c0369607bc4046730c9 /templates/tree.nex.txt
parent8c6db5a6847aea8955579c4d709d3f7748745f3d (diff)
support for nex protocolHEADv0.9.5main
Diffstat (limited to 'templates/tree.nex.txt')
-rw-r--r--templates/tree.nex.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/tree.nex.txt b/templates/tree.nex.txt
new file mode 100644
index 0000000..676113b
--- /dev/null
+++ b/templates/tree.nex.txt
@@ -0,0 +1,8 @@
+{{ with .Repo.Commit .Ctx .Params.ref -}}
+{{slice .Hash 0 8}}:{{ if ne $.Params.path "" }}{{$.Params.path}}{{ else }}/{{ end }}
+
+{{ end -}}
+=> ../ {{ if ne .Params.path "" }}../{{ else }}Commit{{ end }}
+{{ range .Repo.Tree .Ctx .Params.ref .Params.path -}}
+=> ./{{.Path}}{{if eq .Type "tree"}}/{{end}} {{if eq .Type "blob"}}📄{{else if eq .Type "tree"}}📂{{end}} {{.Path}}
+{{ end -}}