{{/* {{ template "tree-table" (dict "Base" "/slug" "Ref" ref "Entries" entries) }} */}} {{ define "tree-table" }} {{ $ := . }}{{ range .Entries }} {{ else }} {{ end }}
{{ if .IsDir }}▸{{ else }}·{{ end }} {{ if .IsDir }}{{ .Name }} {{ else }}{{ .Name }}{{ end }} {{ if .IsDir }}—{{ else }}{{ bytes .Size }}{{ end }} {{ if not .IsDir }}raw{{ end }}
This directory is empty.
{{ end }} {{ define "commit-table" }} {{ $ := . }}{{ range .Commits }} {{ else }} {{ end }}
{{ .Short }} {{ trunc 78 .Subject }} {{ .Author }}
No commits on this ref yet.
{{ end }} {{/* {{ template "diffstat" (dict "Base" "/slug" "Ref" sha "Diff" d) }} */}} {{ define "diffstat" }} {{ $ := . }} {{ with .Diff.Stats }} {{ range . }} {{ end }}
{{ .Path }} {{ if eq .Status "B" }}binary {{ else }}+{{ .Added }}−{{ .Deleted }}{{ end }} raw
{{ else }}

No files changed.

{{ end }} {{ if .Diff.Truncated }}

This diff exceeds the size limit and is shown in part. Fetch the file with raw to see all of it.

{{ end }} {{ end }}