{{ define "commit.html" }}{{ template "base" . }}{{ end }} {{ define "main" }} {{ $c := mod "commit" }}{{ $d := mod "diff" }}{{ $slug := print "/" .Info.Slug }}

{{ $c.Subject }}

{{ $c.Author }} committed

commit
{{ $c.SHA }}
{{ with $c.Parents }}
parent{{ if gt (len .) 1 }}s{{ end }}
{{ range . }}{{ trunc 12 . }} diff{{ end }}
{{ end }}
{{ with $c.Body }}
{{ . }}
{{ end }}

Changed files

{{ template "diffstat" (dict "Base" $slug "Ref" $c.SHA "Diff" $d) }} {{ with $d.Patch }}{{ patch . }}{{ end }} {{ end }}