more work on autocomplete
This commit is contained in:
parent
3a967eac13
commit
31db2f96f6
2
argv.go
2
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)
|
||||
|
|
12
doTag.go
12
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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue