{{define "content"}} {{$p := .Data.Page}} {{$c := .Data.Commit}}

{{$c.Subject}}

commit
{{$c.Hash}} tree
{{range $c.Parents}}
parent
{{.}}
{{end}}
author
{{$c.Author}} <{{$c.Email}}>
date
{{date $c.Time}} UTC
{{if $c.Body}}
{{$c.Body}}
{{end}}

{{len .Data.Files}} files changed, +{{.Data.Added}} -{{.Data.Removed}}

{{range .Data.Files}}

{{if eq .Status "renamed"}}{{.Old}} → {{end}}{{.New}} {{.Status}}

{{if .Binary}}

binary file

{{end}} {{range .Hunks}} {{range .Lines}}{{end}}
{{.Header}}
{{if .Old}}{{.Old}}{{end}}{{if .New}}{{.New}}{{end}}{{if eq .Kind "add"}}+{{else if eq .Kind "del"}}-{{else if eq .Kind "ctx"}} {{end}}{{.Text}}
{{end}}
{{end}} {{end}}