diff options
| author | Jeff Carr <[email protected]> | 2024-02-17 08:38:44 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-17 08:38:44 -0600 |
| commit | dfc28a04d637d9af6eef8bde9b65952b99b15465 (patch) | |
| tree | 9bc0d9080e1633b4d0af16731f263eecf40faa05 /globalBuildOptions.go | |
| parent | 9cce297abf9ac75bcb467602ceae16b67c80ef25 (diff) | |
refactor to use repolist package
Diffstat (limited to 'globalBuildOptions.go')
| -rw-r--r-- | globalBuildOptions.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/globalBuildOptions.go b/globalBuildOptions.go index 2ded629..ddb38f8 100644 --- a/globalBuildOptions.go +++ b/globalBuildOptions.go @@ -9,6 +9,7 @@ import ( "go.wit.com/gui" "go.wit.com/lib/gadgets" + "go.wit.com/lib/gui/repolist" "go.wit.com/lib/gui/repostatus" ) @@ -81,9 +82,9 @@ func globalBuildOptions(vbox *gui.Node) { me.setBranchB = grid.NewButton("set current branch to:", func() { targetName := me.newBranch.String() log.Warn("setting all branches to", targetName) - for _, repo := range me.allrepos { - repo.status.CheckoutBranch(targetName) - repo.newScan() + for _, repo := range repolist.AllRepos() { + repo.CheckoutBranch(targetName) + repo.Scan() } }) me.newBranch = grid.NewCombobox() |
