diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 29 |
1 files changed, 2 insertions, 27 deletions
@@ -155,34 +155,9 @@ func main() { } if argv.Patch != nil { - if argv.Patch.Submit != "" { - _, err := me.forge.SubmitDevelPatchSet(argv.Patch.Submit) - if err != nil { - badExit(err) - } - okExit("") - } - - if argv.Patch.List != nil { - if psets, err := me.forge.GetPatchesets(); err != nil { - log.Info("Get Patchsets failed", err) - return - } else { - log.Info("got psets len", len(psets.Patchsets)) - all := psets.SortByName() - for all.Scan() { - pset := all.Next() - log.Info("pset name =", pset.Name) - } - } - } - findReposWithPatches() - if me.found.Len() == 0 { - log.Info("you have no patches in your user branches") - okExit("patch list empty") + if err := doPatch(); err != nil { + badExit(err) } - me.forge.PrintHumanTable(me.found) - okExit("patch list") } |
