{{ define "repo_commit" }} {{ template "head" . }} {{ .name }}: {{ .commit.This }} {{ template "repo_header" . }}
{{ .commit.Committed }} {{ .commit.AuthorName }} {{ .commit.AuthorEmail }}
{{- .commit.Message -}}
{{ if .commit.Parent }} {{ end }}
commit {{ .commit.This }}
parent {{ .commit.Parent }}
{{ .stat.FilesChanged }} files changed, {{ .stat.Insertions }} insertions(+), {{ .stat.Deletions }} deletions(-)
jump to {{ range .diff }} {{ $path := .Name.New }} {{ if not $path }}{{ $path = .Name.Old }}{{ end }} {{ end }}
{{ if .IsNew }}A{{ end }} {{ if .IsDelete }}D{{ end }} {{ if not (or .IsNew .IsDelete) }}M{{ end }} {{ if and .Name.Old .Name.New }}{{ .Name.Old }} → {{ .Name.New }}{{ else }}{{ $path }}{{ end }}
{{ $repo := .name }} {{ $this := .commit.This }} {{ $parent := .commit.Parent }} {{ range .diff }} {{ $path := .Name.New }} {{ if not $path }}{{ $path = .Name.Old }}{{ end }}
{{ if .IsNew }} A {{ end }} {{ if .IsDelete }} D {{ end }} {{ if not (or .IsNew .IsDelete) }} M {{ end }} {{ if .Name.Old }} {{ .Name.Old }} {{ if .Name.New }} → {{ .Name.New }} {{ end }} {{ else }} {{ .Name.New }} {{- end -}} {{ if .IsBinary }}

Not showing binary file.

{{ else }}
            {{- range .TextFragments -}}
            

{{- .Header -}}

{{- range .Lines -}} {{- if eq .Op.String "+" -}} {{ .String }} {{- end -}} {{- if eq .Op.String "-" -}} {{ .String }} {{- end -}} {{- if eq .Op.String " " -}} {{ .String }} {{- end -}} {{- end -}} {{- end -}} {{- end -}}
{{ end }}
{{ end }}