deleted a few tags

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-02-09 04:08:21 -06:00
parent ed5857af77
commit fb162b968a
1 changed files with 5 additions and 2 deletions

View File

@ -71,18 +71,21 @@ func makeTagWindow() *tagWindow {
if tagsW == nil {
repo.status.TagWindow()
tagsW = repo.status.TagsW
tagsW.PruneSmart()
continue
}
tagsW.PruneSmart()
deleteTags := tagsW.List()
for _, t := range deleteTags {
if me.autoDryRun.Checked() {
log.Info("delete tag --dry-run:", t.TagString(), "from", repo.status.String())
} else {
log.Info("Deleting tag:", t.TagString(), "from", repo.status.String())
// tagsW.Delete(t)
tagsW.Delete(t)
}
}
if ! me.autoDryRun.Checked() {
return
}
}
})