diff options
Diffstat (limited to 'set.table.go')
| -rw-r--r-- | set.table.go | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/set.table.go b/set.table.go index 2d8f1ac..b5f784e 100644 --- a/set.table.go +++ b/set.table.go @@ -33,6 +33,12 @@ func (pb *Patches) makeStandardTable() *PatchesTable { col := t.AddNamespace() col.Width = 28 + col = t.AddCommitHash() + col.Width = 8 + + col = t.AddPatchId() + col.Width = 8 + col = t.AddTimeFunc("ctime", func(p *Patch) time.Time { // todo return p.Ctime.AsTime() @@ -45,23 +51,16 @@ func (pb *Patches) makeStandardTable() *PatchesTable { return time.Now() }) col.Width = 4 - - col = t.AddStringFunc("Ref Name", func(r *gitpb.GitTag) string { - _, ref := filepath.Split(r.GetRefname()) - return ref - }) - col.Width = 16 */ - col = t.AddPatchId() - col.Width = 8 + // col = t.AddStringFunc("filename", func(p *Patch) string { + // _, base := filepath.Split(p.Filename) + // return base + // }) + // col.Width = 24 col = t.AddComment() - col.Width = 16 - - col = t.AddFilename() - col.Width = 30 - + col.Width = 80 return t } |
