testing showing tag age
This commit is contained in:
parent
179c19147e
commit
7fdd7075fd
9
doTag.go
9
doTag.go
|
@ -84,6 +84,7 @@ func makeTagTablePB(pb *gitpb.GitTags) *gitpb.GitTagsTable {
|
||||||
return ref
|
return ref
|
||||||
})
|
})
|
||||||
col.Width = 16
|
col.Width = 16
|
||||||
|
// col.Width = -1
|
||||||
|
|
||||||
cola := t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time {
|
cola := t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time {
|
||||||
// todo
|
// todo
|
||||||
|
@ -91,7 +92,11 @@ func makeTagTablePB(pb *gitpb.GitTags) *gitpb.GitTagsTable {
|
||||||
})
|
})
|
||||||
cola.Width = 6
|
cola.Width = 6
|
||||||
|
|
||||||
col = t.AddSubject()
|
cola = t.AddTimeFunc("ctime", func(tag *gitpb.GitTag) time.Time {
|
||||||
col.Width = -1
|
// todo
|
||||||
|
return tag.Creatordate.AsTime()
|
||||||
|
})
|
||||||
|
cola.Width = 16
|
||||||
|
|
||||||
return t
|
return t
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue