diff options
| author | Jeff Carr <[email protected]> | 2024-02-16 17:55:13 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-16 17:55:13 -0600 |
| commit | 0b4f4d76866ccc500112cfe553240c47961258e2 (patch) | |
| tree | 5b68ef32ea6dab46b0aa3c7c522f4852b62bfcd3 /branchesBox.go | |
| parent | bd62a89a670eab24ff5fd7b1ed155b89dde08157 (diff) | |
ready to work on creating branches
Diffstat (limited to 'branchesBox.go')
| -rw-r--r-- | branchesBox.go | 17 |
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"` |
