summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-09 04:08:21 -0600
committerJeff Carr <[email protected]>2024-02-09 04:08:21 -0600
commitfb162b968a192e92914dd6b852d82f8140d013a4 (patch)
treea7a80d2e6f2c6b9358799328af4b425b89b1cb5b
parented5857af77edb5a8369fc0a9fb4e93c282fa5664 (diff)
deleted a few tags
Signed-off-by: Jeff Carr <[email protected]>
-rw-r--r--tagWindow.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/tagWindow.go b/tagWindow.go
index 122f2d6..473d0a3 100644
--- a/tagWindow.go
+++ b/tagWindow.go
@@ -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
+ }
}
})