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 == "" {
|
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)
|
||||||
|
|
6
doTag.go
6
doTag.go
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue