{{/* {{ template "tree-table" (dict "Base" "/slug" "Ref" ref "Entries" entries) }} */}} {{ define "tree-table" }}
{{ $ := . }}{{ range .Entries }} {{ else }} {{ end }}
NameTypeSize
{{ if .IsDir }}{{ .Name }} {{ else }}{{ .Name }}{{ end }} {{ if .IsDir }}dir{{ else if .IsSubmodule }}submodule{{ else }}file{{ end }} {{ if .IsDir }}—{{ else }}{{ bytes .Size }}{{ end }}
This directory is empty.
{{ end }} {{/* {{ template "commit-table" (dict "Base" "/slug" "Commits" commits) }} */}} {{ define "commit-table" }}
{{ $ := . }}{{ range .Commits }} {{ else }} {{ end }}
HashSubjectAuthorDate
{{ .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 }}
FileChanges
{{ .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 }}