From e3705f35c642e578625ce4574d189fa0b0869403 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Sat, 1 Jun 2024 19:59:43 +0200 Subject: feat: Add ref support Now log and tree can be loaded using a given reference. --- templates/gititemlog.qtpl.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'templates/gititemlog.qtpl.go') diff --git a/templates/gititemlog.qtpl.go b/templates/gititemlog.qtpl.go index e63c871..47e700d 100644 --- a/templates/gititemlog.qtpl.go +++ b/templates/gititemlog.qtpl.go @@ -26,29 +26,29 @@ type GitItemLogPage struct { } //line gititemlog.qtpl:9 -func (g *GitItemLogPage) StreamNav(qw422016 *qt422016.Writer, name string) { +func (g *GitItemLogPage) StreamNav(qw422016 *qt422016.Writer, name, ref string) { //line gititemlog.qtpl:9 - StreamGitItemNav(qw422016, name, Log) + StreamGitItemNav(qw422016, name, ref, Log) //line gititemlog.qtpl:9 } //line gititemlog.qtpl:9 -func (g *GitItemLogPage) WriteNav(qq422016 qtio422016.Writer, name string) { +func (g *GitItemLogPage) WriteNav(qq422016 qtio422016.Writer, name, ref string) { //line gititemlog.qtpl:9 qw422016 := qt422016.AcquireWriter(qq422016) //line gititemlog.qtpl:9 - g.StreamNav(qw422016, name) + g.StreamNav(qw422016, name, ref) //line gititemlog.qtpl:9 qt422016.ReleaseWriter(qw422016) //line gititemlog.qtpl:9 } //line gititemlog.qtpl:9 -func (g *GitItemLogPage) Nav(name string) string { +func (g *GitItemLogPage) Nav(name, ref string) string { //line gititemlog.qtpl:9 qb422016 := qt422016.AcquireByteBuffer() //line gititemlog.qtpl:9 - g.WriteNav(qb422016, name) + g.WriteNav(qb422016, name, ref) //line gititemlog.qtpl:9 qs422016 := string(qb422016.B) //line gititemlog.qtpl:9 -- cgit v1.2.3