{{ define "_commit_table" }} {{ range $.Commits }} {{ end }}
Message Author Hash Age
{{- if .Message }}{{- commitSummary .Message -}} {{- else -}}Empty message{{- end -}} {{ .AuthorName }} {{ .AuthorEmail }} {{ .AuthorName }}
{{ .AuthorEmail }}
{{ .HashShort }} {{ humanizeRelTime .Committed }} {{ humanizeTime .Committed }}
{{ end }} {{ define "repo_commit" }} {{ $commit := .P.Diff.Commit }} {{ $diff := .P.Diff.Diff }} {{ $stat := .P.Diff.Stat }} {{ $parents := .P.Diff.Parents }} {{ template "head" . }} {{ .RepoName }}: {{ $commit.HashShort }} {{ template "repo_header" . }}
{{ template "_diff_stat" $stat }}
            {{- if $commit.Message }}{{- $commit.Message -}}
            {{- else -}}Empty message{{- end -}}
          
Author: {{ $commit.AuthorName }} {{ $commit.AuthorEmail }}
{{ if ne $commit.AuthorEmail $commit.CommitterEmail }}
Committed by: {{ $commit.CommitterName }} {{ $commit.CommitterEmail }}
{{ end }}
Committed at: {{ humanizeTime $commit.Committed }}
{{ if ne $commit.Authored $commit.Committed }}
Authored at: {{ humanizeTime $commit.Authored }}
{{ end }} {{ if $commit.ChangeID -}}
Change ID: {{ $commit.ChangeID }}
{{- end }} {{ if $parents }}
Parent: {{ range $i, $p := $parents -}} {{ if $i }}, {{ end -}} {{ $p }} {{- end }}
{{ end }}
{{ template "_diff_table" $diff }}
{{ $parent := "" }} {{ if $parents }}{{ $parent = index $parents 0 }}{{ end }} {{ template "_diff_files" (dict "Repo" .RepoName "Diff" $diff "RightHash" $commit.Hash "LeftHash" $parent) }}
{{ end }}