{{define "content"}}

{{.Commit.Message | commitSubject}}

{{$body := .Commit.Message | commitBody}} {{if $body}}
{{$body}}
{{end}}
Author
{{.Commit.Author.Name}} <{{.Commit.Author.Email}}>
Date
Commit
{{.Commit.ID}}
{{if .ParentIDs}}
Parent{{if gt (len .ParentIDs) 1}}s{{end}}
{{range $i, $parent := .ParentIDs}}{{if $i}}, {{end}}{{$parent | shortHash}}{{end}}
{{end}}

Change summary

{{.Diff.Stats}}

Detailed changes

{{range .Diff.Files}}

{{if ne .OldName .Name}} {{.OldName}} → {{.Name}} {{else}} {{.Name}} {{end}}

{{range .Sections}}{{range .Lines}}{{if eq .Type 2}}{{.Content}}{{else if eq .Type 3}}{{.Content}}{{else}}{{.Content}}{{end}}
{{end}}{{end}}
{{end}}
{{end}}