{{ define "compare.html" }}{{ template "base" . }}{{ end }} {{ define "styles" }}{{ end }} {{ define "main" }} {{ $slug := print "/" .Info.Slug }} {{ $c := mod "compare" }}

Compare

{{ $c.Base }} {{ if $c.ThreeDot }}…{{ else }}..{{ end }} {{ $c.Head }} · {{ len $c.Commits }} commits

base {{ trunc 12 $c.BaseSHA }}
head {{ trunc 12 $c.HeadSHA }}
{{ with $c.MergeBase }}
merge base {{ trunc 12 . }}
{{ end }}

Changed files

{{ template "diffstat" (dict "Base" $slug "Ref" $c.HeadSHA "Diff" $c.Diff) }}
{{ with $c.Commits }}

Commits

{{ template "commit-table" (dict "Base" $slug "Commits" .) }}
{{ end }} {{ with $c.Diff.Patch }}
{{ patch . }}
{{ end }} {{ end }}