From 2b2de94eff3ec37566665a22804c58c1ce764665 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 29 Jan 2025 00:52:49 -0600 Subject: [PATCH] old code --- branchesBox.go | 36 ++++-------------------------------- 1 file 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") }) }