blob: 676113b7f8814a4ec33ed217b57e0a5f288fb05f (
plain)
1
2
3
4
5
6
7
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 -}}
|