diff options
Diffstat (limited to 'branchesBox.go')
| -rw-r--r-- | branchesBox.go | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/branchesBox.go b/branchesBox.go index 7caa7d7..64a756d 100644 --- a/branchesBox.go +++ b/branchesBox.go @@ -26,17 +26,19 @@ func (rs *RepoStatus) makeBranchesBox(parent *gui.Node) { newgrid.NextRow() rs.switchBranchB = newgrid.NewButton("Switch Branch", func() { // `progname:"SWITCH"` - bname := rs.targetBranch.String() - log.Info("Should switch to branch", bname, "here") + /* + bname := rs.targetBranch.String() + log.Info("Should switch to branch", bname, "here") - var all [][]string - all = append(all, []string{"git", "checkout", bname}) - if rs.DoAll(all) { - log.Info("branch switched to", bname) - } else { - log.Info("branch switched to", bname, "failed") - } - rs.updateNew() + var all [][]string + all = append(all, []string{"git", "checkout", bname}) + if rs.DoAll(all) { + log.Info("branch switched to", bname) + } else { + log.Info("branch switched to", bname, "failed") + } + rs.updateNew() + */ }) rs.targetBranch = newgrid.NewDropdown() // `progname:"TARGET"` |
