more work on autocomplete

This commit is contained in:
Jeff Carr 2025-09-22 19:21:41 -05:00
parent 3a967eac13
commit aed1f2b249
2 changed files with 8 additions and 6 deletions

View File

@ -190,7 +190,7 @@ func DoAutoComplete(pb *prep.Auto) {
if pb.Cmd == "" { if pb.Cmd == "" {
pb.Autocomplete2("help list checkout clean commit dirty fetch gui normal merge patch pull tag --gui") pb.Autocomplete2("help list checkout clean commit dirty fetch gui normal merge patch pull tag --gui")
} else { } else {
pb.Autocomplete2("list checkout clean commit dirty normal merge") pb.Autocomplete2("list checkout clean commit dirty normal merge tag")
} }
} }
os.Exit(0) os.Exit(0)

View File

@ -56,13 +56,15 @@ func doTag() error {
} }
// check if the git tag already exists somehow // check if the git tag already exists somehow
testtag := argv.Tag.Delete /*
if !repo.LocalTagExists(testtag) { if !repo.LocalTagExists(testtag) {
log.Info("Tag", testtag, "does not exist") log.Info("Tag", testtag, "does not exist")
return log.Errorf("%s TAG DOES NOT EXIST %s", repo.FullPath, testtag) return log.Errorf("%s TAG DOES NOT EXIST %s", repo.FullPath, testtag)
} }
*/
testtag := argv.Tag.Delete
if !argv.Force { if !argv.Force {
if !fhelp.QuestionUser("delete this tag?") { if !fhelp.QuestionUser(log.Sprintf("delete tag '%s'?", testtag)) {
return nil return nil
} }
} }