// Code generated by qtc from "commit.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. //line templates/commit.qtpl:1 package templates //line templates/commit.qtpl:1 import "git.gabrielgio.me/cerrado/pkg/git" //line templates/commit.qtpl:2 import "git.gabrielgio.me/cerrado/pkg/humanize" //line templates/commit.qtpl:4 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line templates/commit.qtpl:4 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line templates/commit.qtpl:4 func StreamCommit(qw422016 *qt422016.Writer, name string, c *git.CommitReference, showTar bool) { //line templates/commit.qtpl:4 qw422016.N().S(`
`) //line templates/commit.qtpl:8 qw422016.E().S(c.Commit().Hash.String()[0:8]) //line templates/commit.qtpl:8 qw422016.N().S(``) //line templates/commit.qtpl:9 qw422016.E().S(c.Commit().Author.Name) //line templates/commit.qtpl:9 qw422016.N().S(` `) //line templates/commit.qtpl:10 if c.HasReference() { //line templates/commit.qtpl:10 qw422016.N().S(` — `) //line templates/commit.qtpl:12 for _, r := range c.References() { //line templates/commit.qtpl:12 qw422016.N().S(` `) //line templates/commit.qtpl:13 if r.Name().IsBranch() { //line templates/commit.qtpl:13 qw422016.N().S(` `) //line templates/commit.qtpl:14 qw422016.E().S(r.Name().Short()) //line templates/commit.qtpl:14 qw422016.N().S(` `) //line templates/commit.qtpl:15 } else { //line templates/commit.qtpl:15 qw422016.N().S(` `) //line templates/commit.qtpl:16 qw422016.E().S(r.Name().Short()) //line templates/commit.qtpl:16 qw422016.N().S(` `) //line templates/commit.qtpl:17 } //line templates/commit.qtpl:17 qw422016.N().S(` `) //line templates/commit.qtpl:18 } //line templates/commit.qtpl:18 qw422016.N().S(` `) //line templates/commit.qtpl:19 } //line templates/commit.qtpl:19 qw422016.N().S(`
`) //line templates/commit.qtpl:21 if showTar { //line templates/commit.qtpl:21 qw422016.N().S(` `) //line templates/commit.qtpl:25 } //line templates/commit.qtpl:25 qw422016.N().S(`
`)
//line templates/commit.qtpl:31
	qw422016.E().S(c.Commit().Message)
//line templates/commit.qtpl:31
	qw422016.N().S(`
`) //line templates/commit.qtpl:34 } //line templates/commit.qtpl:34 func WriteCommit(qq422016 qtio422016.Writer, name string, c *git.CommitReference, showTar bool) { //line templates/commit.qtpl:34 qw422016 := qt422016.AcquireWriter(qq422016) //line templates/commit.qtpl:34 StreamCommit(qw422016, name, c, showTar) //line templates/commit.qtpl:34 qt422016.ReleaseWriter(qw422016) //line templates/commit.qtpl:34 } //line templates/commit.qtpl:34 func Commit(name string, c *git.CommitReference, showTar bool) string { //line templates/commit.qtpl:34 qb422016 := qt422016.AcquireByteBuffer() //line templates/commit.qtpl:34 WriteCommit(qb422016, name, c, showTar) //line templates/commit.qtpl:34 qs422016 := string(qb422016.B) //line templates/commit.qtpl:34 qt422016.ReleaseByteBuffer(qb422016) //line templates/commit.qtpl:34 return qs422016 //line templates/commit.qtpl:34 }