summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--branchesBox.go36
1 files changed, 4 insertions, 32 deletions
diff --git a/branchesBox.go b/branchesBox.go
index 64a756d..332f4ad 100644
--- a/branchesBox.go
+++ b/branchesBox.go
@@ -26,50 +26,22 @@ 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")
-
- 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"`
newgrid.NextRow()
- rs.showBranchesButton = newgrid.NewButton("find jcarr and devel", func() {
- if rs.TagExists("jcarr") {
- log.Log(WARN, "tag jcarr exists")
- } else {
- log.Log(WARN, "tag jcarr does not exist")
- }
- if rs.TagExists("devel") {
- log.Log(WARN, "tag devel exists")
- } else {
- log.Log(WARN, "tag devel does not exist")
- }
+ rs.showBranchesButton = newgrid.NewButton("find user and devel", func() {
+ log.Info("redo this")
})
newgrid.NextRow()
rs.checkBranchesButton = newgrid.NewButton("CheckBranches()", func() {
- /*
- if rs.CheckBranches() {
- log.Log(WARN, "Branches are perfect")
- } else {
- log.Log(WARN, "Branches are not perfect")
- }
- */
+ log.Info("redo this")
})
newgrid.NextRow()
newgrid.NewButton("Revert master to devel", func() {
- // rs.RevertMasterToDevel()
+ log.Info("redo this")
})
}