{{ define "compare.html" }}{{ template "base" . }}{{ end }} {{ define "main" }} {{ $c := mod "compare" }}

Compare

{{ $c.Base }} {{ if $c.ThreeDot }}…{{ else }}‥{{ end }} {{ $c.Head }}

base
{{ trunc 12 $c.BaseSHA }}
head
{{ trunc 12 $c.HeadSHA }}
{{ with $c.MergeBase }}
merge base
{{ trunc 12 . }}
{{ end }}
commits
{{ len $c.Commits }}
{{ template "diffstat" (dict "Base" (print "/" .Info.Slug) "Ref" $c.HeadSHA "Diff" $c.Diff) }} {{ with $c.Commits }}

Commits

{{ template "commit-table" (dict "Base" (print "/" $.Info.Slug) "Commits" .) }} {{ end }} {{ with $c.Diff.Patch }}

Patch

{{ patch . }}{{ end }} {{ end }}