{{- /*gotype: mokhan.ca/xlgmokha/gitmal/internal/templates.CompareParams*/ -}} {{- define "head" -}} {{- end}} {{- define "body" -}}

Comparing changes

{{.Base}} {{.Head}}
{{len .Commits}} commits {{len .FileViews}} files changed
{{- if .Commits}}

Commits

{{- range .Commits}}
{{.ShortHash}} {{.Subject}} {{.Author}} {{.Date | FormatDate}}
{{- end}}
{{- end}}
Changed files ({{len .FileViews}})
{{- if .FileTree}}
{{- template "file_tree" (FileTreeParams .FileTree)}}
{{- else}}
(no files changed)
{{- end}}
{{- range .FileViews}}
{{- if .IsRename}}
{{.OldName}} → {{.NewName}}
{{- else}}
{{.Path}}
{{- end}}
{{- if .IsBinary}}
Binary file
{{- else if (and .IsRename (not .HasChanges))}}
File renamed without changes
{{- else}}
{{.HTML}}
{{- end}}
{{- end}}
{{- end}}