summaryrefslogtreecommitdiff
path: root/branchesBox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-07 18:45:34 -0600
committerJeff Carr <[email protected]>2025-01-07 18:45:34 -0600
commitd9a54a6c31770f13fd77aecd012e1158b6140616 (patch)
tree3448849bf60da011f4c2fda7ba0927efcbc8de0e /branchesBox.go
parent9221f83aaf06eb53b63f77a1e13887aad143e070 (diff)
still rm old code
Diffstat (limited to 'branchesBox.go')
-rw-r--r--branchesBox.go22
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"`