{{ define "title" }} commit {{ .Diff.Commit.This }} · {{ .RepoInfo.FullName }} {{ end }} {{ define "repoContent" }} {{ $repo := .RepoInfo.FullName }} {{ $commit := .Diff.Commit }} {{ $stat := .Diff.Stat }} {{ $diff := .Diff.Diff }}
{{ $messageParts := splitN $commit.Message "\n\n" 2 }}

{{ index $messageParts 0 }}

{{ if gt (len $messageParts) 1 }}

{{ nl2br (unwrapText (index $messageParts 1)) }}

{{ end }}

{{ $didOrHandle := index $.EmailToDidOrHandle $commit.Author.Email }} {{ if $didOrHandle }} {{ $didOrHandle }} {{ else }} {{ $commit.Author.Name }} {{ end }} {{ timeFmt $commit.Author.When }} {{ $stat.FilesChanged }} files (+{{ $stat.Insertions }}, -{{ $stat.Deletions }})

{{ slice $commit.This 0 8 }} {{ if $commit.Parent }} {{ i "arrow-left" "w-3 h-3 mx-1" }} {{ slice $commit.Parent 0 8 }} {{ end }}


Changed files
{{ range $diff }} {{ end }}
{{end}} {{ define "repoAfter" }} {{ template "fragments/diff" (list .RepoInfo.FullName .Diff) }} {{end}}