summaryrefslogtreecommitdiff
path: root/human.go
diff options
context:
space:
mode:
Diffstat (limited to 'human.go')
-rw-r--r--human.go12
1 files changed, 1 insertions, 11 deletions
diff --git a/human.go b/human.go
index 1d6a9c5..06caa9a 100644
--- a/human.go
+++ b/human.go
@@ -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()