From 12b751cc7fbaa09f205c6207c355300f15885441 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 5 Nov 2025 15:29:40 -0600 Subject: compiles against stat.proto --- tableForged.go | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'tableForged.go') diff --git a/tableForged.go b/tableForged.go index fe86c08..721f9a5 100644 --- a/tableForged.go +++ b/tableForged.go @@ -25,13 +25,10 @@ func (pb *Repos) MakeForgedTable() *ReposTable { col.Width = 10 col = t.AddStringFunc("hash", func(r *Repo) string { - if r.Tags == nil { - return "nil" + if r.MasterStat != nil { + return r.MasterStat.Hash } - if r.Tags.Master == nil { - return "nil" - } - return r.Tags.Master.Hash + return "fixme []Stat" }) col.Width = 6 @@ -42,13 +39,10 @@ func (pb *Repos) MakeForgedTable() *ReposTable { col.Width = 10 col = t.AddStringFunc("hash", func(r *Repo) string { - if r.Tags == nil { - return "nil" - } - if r.Tags.Devel == nil { - return "nil" + if r.DevelStat != nil { + return r.DevelStat.Hash } - return r.Tags.Devel.Hash + return "fixme []Stat" }) col.Width = 6 -- cgit v1.2.3