diff options
| -rw-r--r-- | tagWindow.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tagWindow.go b/tagWindow.go index fcf1d56..5e51782 100644 --- a/tagWindow.go +++ b/tagWindow.go @@ -203,6 +203,12 @@ func (rtags *repoTags) PruneSmart() { isVersion := regexp.MustCompile("v[0-9]+.[0-9]+.[0-9]+").MatchString if isVersion(t.tag.String()) { + if first { + log.Info("keep first tag", i, t.tag.String()) + t.Hide() + first = false + continue + } log.Info("valid tag", i, t.tag.String()) t.Hide() continue |
