{{ $stat.FilesChanged }} files changed,
{{ $stat.Insertions }} insertions(+),
{{ $stat.Deletions }} deletions(-)
Author:
{{ $commit.AuthorName }}
{{ $commit.AuthorEmail }}
{{ if ne $commit.AuthorEmail $commit.CommitterEmail }}
Committed by:
{{ $commit.CommitterName }}
{{ $commit.CommitterEmail }}
{{ end }}
Committed at:
{{ humanizeTime $commit.Committed }}
{{ if $commit.ChangeID -}}
Change ID:
{{ $commit.ChangeID }}
{{- end }}
{{ if $parents }}
Parent:
{{ range $i, $p := $parents -}}
{{ if $i }}, {{ end -}}
{{ $p }}
{{- end }}
{{ end }}
jump to
{{ range $diff }}
{{ $path := .Name.New }}
{{ if not $path }}{{ $path = .Name.Old }}{{ end }}
{{ end }}
| {{ template "_diff_type" . }} | {{ if .IsRename }}{{ .Name.Old }} → {{ .Name.New }} {{ else }}{{ $path }}{{ end }} |
{{ template "_diff_type" . }}
{{ $name := .Name.New }}{{ $hash := $this }}
{{ if or .IsDelete .IsRename }}{{ $name = .Name.Old }}{{ $hash = $parent }}{{ end }}
{{ if $hash }}{{ $name }}{{ else }}{{ $name }}{{ end }}
{{ if .IsRename }} → {{ .Name.New }}{{ end }}
{{ if .IsBinary }}
Not showing binary file.
{{ else }}
{{- range .TextFragments -}}
ยทยทยท
{{- $o := .OldPosition -}}
{{- $n := .NewPosition -}}
{{- range .Lines -}}
{{- $op := .Op.String -}}
{{- if eq $op "+" -}}
{{ $n }}
{{ $op }}{{ .Line }}
{{- $n = inc64 $n -}}
{{- else if eq $op "-" -}}
{{ $o }}
{{ $op }}{{ .Line }}
{{- $o = inc64 $o -}}
{{- else -}}
{{ $o }}
{{ $n }}
{{ $op }}{{ .Line }}
{{- $o = inc64 $o -}}
{{- $n = inc64 $n -}}
{{- end -}}
{{- end -}}
{{- end -}}
{{ end }}