From 31db2f96f6c3a1567f40128193824113692f3334 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 22 Sep 2025 19:21:41 -0500 Subject: [PATCH] more work on autocomplete --- argv.go | 2 +- doTag.go | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/argv.go b/argv.go index 426b130..f6caabe 100644 --- a/argv.go +++ b/argv.go @@ -190,7 +190,7 @@ func DoAutoComplete(pb *prep.Auto) { if pb.Cmd == "" { pb.Autocomplete2("help list checkout clean commit dirty fetch gui normal merge patch pull tag --gui") } else { - pb.Autocomplete2("list checkout clean commit dirty normal merge") + pb.Autocomplete2("list checkout clean commit dirty normal merge tag") } } os.Exit(0) diff --git a/doTag.go b/doTag.go index 161a581..90c3ec1 100644 --- a/doTag.go +++ b/doTag.go @@ -56,13 +56,15 @@ func doTag() error { } // check if the git tag already exists somehow + /* + if !repo.LocalTagExists(testtag) { + log.Info("Tag", testtag, "does not exist") + return log.Errorf("%s TAG DOES NOT EXIST %s", repo.FullPath, testtag) + } + */ testtag := argv.Tag.Delete - if !repo.LocalTagExists(testtag) { - log.Info("Tag", testtag, "does not exist") - return log.Errorf("%s TAG DOES NOT EXIST %s", repo.FullPath, testtag) - } if !argv.Force { - if !fhelp.QuestionUser("delete this tag?") { + if !fhelp.QuestionUser(log.Sprintf("delete tag '%s'?", testtag)) { return nil } }