diff options
Diffstat (limited to 'human.go')
| -rw-r--r-- | human.go | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -2,7 +2,6 @@ package forgepb import ( "fmt" - "time" "go.wit.com/lib/gui/shell" "go.wit.com/lib/protobuf/gitpb" @@ -50,21 +49,12 @@ func (f *Forge) ConfigPrintTable() { } } -func (f *Forge) NewestAge(repo *gitpb.Repo) time.Duration { - all := repo.Tags.SortByAge() - for all.Scan() { - r := all.Next() - return time.Since(r.GetAuthordate().AsTime()) - } - return time.Since(time.Now()) -} - // show information while doing golang releases func (f *Forge) StandardReleaseHeader(repo *gitpb.Repo, state string) string { lastTag := repo.GetLastTag() // tag := repo.NewestTag() // gitAge, _ := tag.GetDate() - dur := f.NewestAge(repo) + dur := repo.NewestAge() curname := repo.GetCurrentBranchName() master := repo.GetMasterVersion() |
