summaryrefslogtreecommitdiff
path: root/templates/ref.gph
blob: f6b00cc68ca77b7da55ab08f4f46e53592fb4436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{{ with .Repo.Commit .Ctx .Params.ref -}}
i{{.Repo.Name}} {{slice .Hash 0 8}}	{{$.Selector}}	{{$.Host}}	{{$.Port}}
i{{ range .Repo.NameBytes }}-{{ end }}---------	{{$.Selector}}	{{$.Host}}	{{$.Port}}
i	{{$.Selector}}	{{$.Host}}	{{$.Port}}
i{{.ShortMessage}}	{{$.Selector}}	{{$.Host}}	{{$.Port}}
i	{{$.Selector}}	{{$.Host}}	{{$.Port}}
{{ with .RestOfMessage -}}
{{ if ne . "" -}}
i{{.}}	{{$.Selector}}	{{$.Host}}	{{$.Port}}
i	{{$.Selector}}	{{$.Host}}	{{$.Port}}
{{ end -}}
{{ end -}}
1🗂️ Repository	{{combine $.Selector ".."}}	{{$.Host}}	{{$.Port}}
1📄 Files	{{join $.Selector "/tree"}}	{{$.Host}}	{{$.Port}}
{{ if ne .Parents nil -}}
0🔩 Full Diff	{{join $.Selector "../../diff" .ParentHash .Hash}}	{{$.Host}}	{{$.Port}}
{{ else -}}
0🔩 Full Diff	{{join $.Selector ".." ".." "diff" "4b825dc642cb6eb9a060e54bf8d69288fbee4904" .Hash}}	{{$.Host}}	{{$.Port}}
{{ end -}}
{{ range .Parents -}}
1👤 Parent {{slice . 0 8}}	{{combine $.Selector .}}	{{$.Host}}	{{$.Port}}
{{ end -}}
{{ range .Repo.Refs $.Ctx -}}
{{ if .IsTag -}}
{{ if eq $.Params.ref .Hash -}}
1🏷️ {{.ShortName}}	../{{.Hash}}	{{$.Host}}	{{$.Port}}
{{ end -}}
{{ end -}}
{{ end -}}
i	{{$.Selector}}	{{$.Host}}	{{$.Port}}
iAuthored by {{.AuthorName}}<{{.AuthorEmail}}> on {{.AuthorDate.Format "Mon Jan _2 15:04:05 MST 2006"}}	{{$.Selector}}	{{$.Host}}	{{$.Port}}
iCommitted by {{.CommitterName}}<{{.CommitterEmail}}> on {{.CommitDate.Format "Mon Jan _2 15:04:05 MST 2006"}}	{{$.Selector}}	{{$.Host}}	{{$.Port}}
i	{{$.Selector}}	{{$.Host}}	{{$.Port}}
{{ if eq .Parents nil -}}
{{.Repo.Diffstat $.Ctx "4b825dc642cb6eb9a060e54bf8d69288fbee4904" .Hash | rawtext $.Selector $.Host $.Port }}
{{ else -}}
{{ with index .Parents 0 -}}
{{$.Repo.Diffstat $.Ctx . $.Params.ref | rawtext $.Selector $.Host $.Port }}
{{ end -}}
{{ end -}}
{{ end -}}
.