{{$lines := split .Commit.Message "\n"}}
{{index $lines 0}}
{{$hasBody := false}}{{range $i, $line := $lines}}{{if and (gt $i 0) (ne $line "")}}{{$hasBody = true}}{{end}}{{end}} {{if $hasBody}}
{{range $i, $line := $lines}}{{if and (gt $i 0) (ne $line "")}}
{{$line}}
{{end}}{{end}}
| Author | {{.Commit.AuthorName}} <{{.Commit.AuthorEmail}}> | {{.Commit.AuthorDate.Format "2006-01-02 15:04:05 -0700"}} |
| Committer | {{.Commit.CommitterName}} <{{.Commit.CommitterEmail}}> | {{.Commit.CommitterDate.Format "2006-01-02 15:04:05 -0700"}} |
| Commit | {{.Commit.Hash}} (patch) |
|
{{.Mode}} |
{{if .Deleted}} {{.Name}} {{else}} {{.Name}} {{end}} | {{if .IsBinary}} bin {{humanize .OldSize}} -> {{humanize .NewSize}} {{else}} {{add .Addition .Deletion}} {{end}} | {{if not .IsBinary}} {{end}} |
{{len .FileDiffs}} files changed, {{.Commit.Additions}} insertions, {{.Commit.Deletions}} deletions
{{if .Commit.TooLarge}}
{{else}}
Commit too large to display
{{else}} {{range .FileDiffs}}| diff --git a/{{.Name}} b/{{.Name}} | |||
| Changes too big to display | |||
| ... | |||
| {{.LeftNo}} | {{if .Left}}{{.Left}}{{else}} {{end}} |
{{.RightNo}} | {{if .Right}}{{.Right}}{{else}} {{end}} |
No changes in this commit.
{{end}} {{end}}