summaryrefslogtreecommitdiff
path: root/branchesBox.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-16 17:55:13 -0600
committerJeff Carr <[email protected]>2024-02-16 17:55:13 -0600
commit0b4f4d76866ccc500112cfe553240c47961258e2 (patch)
tree5b68ef32ea6dab46b0aa3c7c522f4852b62bfcd3 /branchesBox.go
parentbd62a89a670eab24ff5fd7b1ed155b89dde08157 (diff)
ready to work on creating branches
Diffstat (limited to 'branchesBox.go')
-rw-r--r--branchesBox.go17
1 files changed, 1 insertions, 16 deletions
diff --git a/branchesBox.go b/branchesBox.go
index 354fe81..86aac4a 100644
--- a/branchesBox.go
+++ b/branchesBox.go
@@ -1,26 +1,11 @@
package repostatus
import (
- "path/filepath"
-
"go.wit.com/gui"
"go.wit.com/lib/gadgets"
"go.wit.com/log"
)
-func (rs *RepoStatus) TagExists(findname string) bool {
- allTags := rs.Tags.ListAll()
- for _, t := range allTags {
- tagname := t.TagString()
- path, filename := filepath.Split(tagname)
- if filename == findname {
- log.Info("found tag:", path, filename, "from", rs.Path())
- return true
- }
- }
- return false
-}
-
func (rs *RepoStatus) makeBranchesBox(parent *gui.Node) {
rs.gitBranchesGroup = parent.NewGroup("branches") // `progname:"BRANCHES"` // can the toolkits use these for i18n support?
newgrid := rs.gitBranchesGroup.NewGrid("gridnuts", 0, 0)
@@ -51,7 +36,7 @@ func (rs *RepoStatus) makeBranchesBox(parent *gui.Node) {
} else {
log.Info("branch switched to", bname, "failed")
}
- rs.UpdateCurrent()
+ rs.UpdateNew()
})
rs.targetBranch = newgrid.NewDropdown() // `progname:"TARGET"`