might be right?
This commit is contained in:
parent
33880f9006
commit
aec1833fe6
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue