diff options
| -rw-r--r-- | tablePatches.go | 45 |
1 files changed, 4 insertions, 41 deletions
diff --git a/tablePatches.go b/tablePatches.go index 5bc2cb1..f6eb983 100644 --- a/tablePatches.go +++ b/tablePatches.go @@ -14,8 +14,7 @@ func (pset *Set) PrintTable() { } log.DaemonMode(true) // don't timestamp lines - tablePB := pset.Patches.makeStandardTable() - tablePB.MakeTable() + tablePB := pset.Patches.MakeTable() tablePB.PrintTable() } @@ -24,8 +23,7 @@ func (pb *Sets) PrintTable() { if pset.Patches == nil { continue } - tablePB := pset.Patches.makeStandardTable() - tablePB.MakeTable() + tablePB := pset.Patches.MakeTable() tablePB.PrintTable() } } @@ -33,11 +31,11 @@ func (pb *Sets) PrintTable() { func (pb *Patches) PrintTable() { log.DaemonMode(true) // don't timestamp lines - tablePB := pb.makeStandardTable() + tablePB := pb.MakeTable() tablePB.PrintTable() } -func (pb *Patches) makeStandardTable() *PatchesTable { +func (pb *Patches) MakeTable() *PatchesTable { t := pb.NewTable("tagList") t.NewUuid() @@ -59,42 +57,7 @@ func (pb *Patches) makeStandardTable() *PatchesTable { }) col.Width = 4 - /* - col = t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time { - // todo - return time.Now() - }) - col.Width = 4 - */ - - // col = t.AddStringFunc("filename", func(p *Patch) string { - // _, base := filepath.Split(p.Filename) - // return base - // }) - // col.Width = 24 - col = t.AddComment() col.Width = 80 return t } - -/* -func (pb *Sets) makeStandardTablePB() *SetsTable { - t := pb.NewTable("tagList") - t.NewUuid() - - col := t.AddUuid() - col.Width = 12 - - col = t.AddTimeFunc("ctime", func(pset *Set) time.Time { - // todo - return pset.Ctime.AsTime() - }) - col.Width = 4 - - col = t.AddComment() - col.Width = -1 - - return t -} -*/ |
