gtx


Branch: develop

Author
thewhodidthis <thewhodidthis@fastmail.com>
Date
Feb. 19 '23 12:20:20
Commit
95d309f571ed745b295f45504df7f72134355222
Parent
ceafa33bd24948b94be20312b7d1c0425fce7932
Changes
diff --git a/project.go b/project.go
index cda9ba0..d89bab9 100644
--- a/project.go
+++ b/project.go
@@ -191,6 +191,10 @@ func (p *project) writeCommitDiff(base string, b branch, c commit, par string) {
 				Commit: c,
 				Parent: par,
 			},
+			"Path": Data{
+				"Branch": b.Name,
+				"Commit": par,
+			},
 			"Project": p.Name,
 		},
 		Title: strings.Join([]string{p.Name, b.Name, c.Abbr}, ": "),
@@ -337,6 +341,10 @@ func (p *project) writeObject(dst string, obj object, base string, b branch, c c
 		Base: "../../",
 		Data: Data{
 			"Object":  *o,
+			"Path": Data{
+				"Branch": b.Name,
+				"Commit": c.Hash,
+			},
 			"Project": p.Name,
 		},
 		Title: strings.Join([]string{p.Name, b.Name, c.Abbr, obj.Path}, ": "),
@@ -382,6 +390,9 @@ func (p *project) writeCommitPage(base string, b branch, c commit) {
 		Base: "../../",
 		Data: Data{
 			"Commit":  c,
+			"Path": Data{
+				"Branch": b.Name,
+			},
 			"Project": p.Name,
 		},
 		Title: strings.Join([]string{p.Name, b.Name, c.Abbr}, ": "),