diff options
| author | Jeff Carr <[email protected]> | 2024-12-14 10:48:08 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-14 10:48:08 -0600 |
| commit | d20ce6b0e8153f41421b6c245a8a5ab5aac079f7 (patch) | |
| tree | 20d5bf05b35ab45e1a97b062aa93f3df02659944 /human.go | |
| parent | b715fdd11a8dd169c4edd7f093333553878c1f08 (diff) | |
add NewestAge(). this is dumb. move this to gitpb
Diffstat (limited to 'human.go')
| -rw-r--r-- | human.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -50,7 +50,7 @@ func (f *Forge) ConfigPrintTable() { } } -func (f *Forge) newestAge(repo *gitpb.Repo) time.Duration { +func (f *Forge) NewestAge(repo *gitpb.Repo) time.Duration { all := repo.Tags.SortByAge() for all.Scan() { r := all.Next() @@ -64,7 +64,7 @@ func (f *Forge) StandardReleaseHeader(repo *gitpb.Repo, state string) string { lastTag := repo.GetLastTag() // tag := repo.NewestTag() // gitAge, _ := tag.GetDate() - dur := f.newestAge(repo) + dur := f.NewestAge(repo) curname := repo.GetCurrentBranchName() master := repo.GetMasterVersion() |
