diff options
| author | Jeff Carr <[email protected]> | 2025-01-29 00:52:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-29 12:26:00 -0600 |
| commit | 2b2de94eff3ec37566665a22804c58c1ce764665 (patch) | |
| tree | 4e3c9bacd7cdb5bb7b49731b6e0379712705999c /branchesBox.go | |
| parent | 750ceaf8a13c023d6d6abffd0c61c41c6bc58cb7 (diff) | |
old codev0.22.36
Diffstat (limited to 'branchesBox.go')
| -rw-r--r-- | branchesBox.go | 36 |
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") }) } |
