might be right?

This commit is contained in:
Jeff Carr 2024-12-03 03:19:22 -06:00
parent 33880f9006
commit aec1833fe6
1 changed files with 13 additions and 0 deletions

View File

@ -80,3 +80,16 @@ func getGitDateStamp(gitdefault string) time.Time {
}
return tagTime
}
func (tag *GitTag) GetAge() time.Duration {
return time.Since(tag.GetAuthordate().AsTime())
}
func (repo *Repo) NewestTag() *GitTag {
loop := repo.Tags.SortByAge()
for loop.Scan() {
r := loop.Next()
return r
}
return nil
}