summaryrefslogtreecommitdiff
path: root/tableForged.go
diff options
context:
space:
mode:
Diffstat (limited to 'tableForged.go')
-rw-r--r--tableForged.go18
1 files changed, 6 insertions, 12 deletions
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