{{- define "repo_commit" -}} {{ template "head_common" . }} {{ .group_name }}/repos/{{ .repo_name }} – Lindenii Forge
{{ template "header" . }}
{{ template "repo_header" . }}
Commit Info
ID {{ .commit_id }}
Author {{ .commit_object.Author.Name }} <{{ .commit_object.Author.Email }}>
Author Date {{ .commit_object.Author.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
Committer {{ .commit_object.Committer.Name }} <{{ .commit_object.Committer.Email }}>
Committer Date {{ .commit_object.Committer.When.Format "Mon, 02 Jan 2006 15:04:05 -0700" }}
Message
{{ .commit_object.Message }}
Actions
Get as Patch
{{ $parent_commit_hash := .parent_commit_hash }} {{ $commit_object := .commit_object }} {{ range .file_patches }}
{{ range .Chunks }} {{ if eq .Type 0 }}
{{ .Content }}
{{ else if eq .Type 1 }}
{{ .Content }}
{{ else if eq .Type 2 }}
{{ .Content }}
{{ else }}
{{ .Content }}
{{ end }} {{ end }}
{{ end }}
{{- end -}}