diff options
Diffstat (limited to 'windowMain.go')
| -rw-r--r-- | windowMain.go | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/windowMain.go b/windowMain.go index c17f766..814287a 100644 --- a/windowMain.go +++ b/windowMain.go @@ -85,31 +85,21 @@ func globalBuildOptions(vbox *gui.Node) { targetName := me.newBranch.String() log.Warn("setting all branches to", targetName) if targetName == "devel" { - if !doAllCheckoutDevel() { - okExit("") + if err := doAllCheckoutDevel(); err != nil { + log.Info("switching to devel branches failed") } return } if targetName == "master" { - log.Info("Don't know how to set", targetName, "yet") + if err := doAllCheckoutMaster(); err != nil { + log.Info("switching to master branches failed") + } return } // just assume user - if targetName == "jcarr" { - if doAllCheckoutUser() { - return - } + if err := doAllCheckoutUser(); err != nil { log.Info("switching to user branches failed") - return } - /* - loop := me.repos.View.ReposSortByName() - for loop.Scan() { - repo := loop.Repo() - repo.Status.CheckoutBranch(targetName) - repo.Scan() - } - */ }) me.newBranch = grid.NewCombobox() me.newBranch.AddText("master") |
