summaryrefslogtreecommitdiff
path: root/doTag.go
diff options
context:
space:
mode:
Diffstat (limited to 'doTag.go')
-rw-r--r--doTag.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/doTag.go b/doTag.go
index 0d8bed2..09c22a6 100644
--- a/doTag.go
+++ b/doTag.go
@@ -83,15 +83,15 @@ func doTag() error {
return nil
}
-func makeTagTablePB(repo *gitpb.Repo, pb *gitpb.GitTags) *gitpb.GitTagsTable {
+func makeTagTablePB(repo *gitpb.Repo, pb *gitpb.Stats) *gitpb.StatsTable {
t := pb.NewTable("tagList")
t.NewUuid()
col := t.AddHash()
col.Width = 12
- col = t.AddStringFunc("bashash", func(tag *gitpb.GitTag) string {
- _, base := filepath.Split(tag.Refname)
+ col = t.AddStringFunc("bashash", func(tag *gitpb.Stat) string {
+ _, base := filepath.Split(tag.Name)
cmd, err := repo.RunStrict([]string{"git", "log", "-1", base, "--format=%H"})
if err != nil {
return "err"
@@ -103,20 +103,20 @@ func makeTagTablePB(repo *gitpb.Repo, pb *gitpb.GitTags) *gitpb.GitTagsTable {
})
col.Width = 12
- col = t.AddTimeFunc("ctime", func(tag *gitpb.GitTag) time.Time {
+ col = t.AddTimeFunc("ctime", func(tag *gitpb.Stat) time.Time {
// todo
- return tag.Creatordate.AsTime()
+ return tag.CommitTime.AsTime()
})
col.Width = 4
- col = t.AddTimeFunc("age", func(repo *gitpb.GitTag) time.Time {
+ col = t.AddTimeFunc("age", func(repo *gitpb.Stat) time.Time {
// todo
return time.Now()
})
col.Width = 4
- col = t.AddStringFunc("Ref Name", func(r *gitpb.GitTag) string {
- _, ref := filepath.Split(r.GetRefname())
+ col = t.AddStringFunc("Ref Name", func(r *gitpb.Stat) string {
+ _, ref := filepath.Split(r.GetName())
return ref
})
col.Width = 16