diff options
author | tjp <tjp@ctrl-c.club> | 2023-11-14 21:53:09 -0700 |
---|---|---|
committer | tjp <tjp@ctrl-c.club> | 2023-11-14 21:53:09 -0700 |
commit | 77725e02cc964f980465b158bb86c4061e6bfcca (patch) | |
tree | e6e2ae135b08ff82d3244c0369607bc4046730c9 /templates/ref.nex.txt | |
parent | 8c6db5a6847aea8955579c4d709d3f7748745f3d (diff) |
Diffstat (limited to 'templates/ref.nex.txt')
-rw-r--r-- | templates/ref.nex.txt | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/templates/ref.nex.txt b/templates/ref.nex.txt new file mode 100644 index 0000000..d76fa24 --- /dev/null +++ b/templates/ref.nex.txt @@ -0,0 +1,48 @@ +{{ with .Repo.Commit .Ctx .Params.ref -}} +{{.Repo.Name}} {{slice .Hash 0 8}} +{{ range .Repo.NameBytes }}-{{end}}--------- + +{{.ShortMessage}} + +{{ with .RestOfMessage -}} +{{ if ne . "" -}} +{{.}} + +{{ end -}} +{{ end -}} +=> ../../ 🗂️ Repository +=> ./tree/ 📄 Files +{{ if ne .Parents nil -}} +=> ../../diff/{{.Hash}}^/{{.Hash}} 🔩 Full Diff +{{ else -}} +=> ../../diff/4b825dc642cb6eb9a060e54bf8d69288fbee4904/{{.Hash}} 🔩 Full Diff +{{ end -}} +{{ range .Parents -}} +=> ../{{.}}/ 👤 Parent {{slice . 0 8}} +{{ end -}} +{{ range .Repo.Refs $.Ctx -}} +{{ if .IsTag -}} +{{ if eq $.Params.ref .Hash -}} +=> ../{{.Hash}}/ 🏷️ {{.ShortName}} +{{ end -}} +{{ end -}} +{{ end }} + +Authored +-------- +{{.AuthorName}}<{{.AuthorEmail}}> +{{.AuthorDate.Format "Mon Jan _2 15:04:05 MST 2006"}} + +Committed +--------- +{{.CommitterName}}<{{.CommitterEmail}}> +{{.CommitDate.Format "Mon Jan _2 15:04:05 MST 2006"}} + +{{ if eq .Parents nil -}} +{{$.Repo.Diffstat $.Ctx "4b825dc642cb6eb9a060e54bf8d69288fbee4904" $.Params.ref}} +{{ else -}} +{{ with index .Parents 0 -}} +{{$.Repo.Diffstat $.Ctx . $.Params.ref}} +{{ end -}} +{{ end -}} +{{ end -}} |