diff options
Diffstat (limited to 'windowRepos.go')
| -rw-r--r-- | windowRepos.go | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/windowRepos.go b/windowRepos.go index c647eff..98e13ad 100644 --- a/windowRepos.go +++ b/windowRepos.go @@ -25,9 +25,7 @@ func makeReposWin() *gadgets.GenericWindow { tb, box := makeStandardReposWindow("dirty repos", found) hbox := box.Box().Horizontal() hbox.NewButton("commit all", func() { - all := found.SortByFullPath() - for all.Scan() { - repo := all.Next() + for repo := range found.IterByFullPath() { log.Info("do commit here on", repo.GetGoPath()) } log.Info("TODO: fix this") @@ -55,9 +53,7 @@ func makeReposWin() *gadgets.GenericWindow { // make the window for the first time found := new(gitpb.Repos) - all := me.forge.Repos.SortByFullPath() - for all.Scan() { - repo := all.Next() + for repo := range me.forge.Repos.IterByFullPath() { if me.forge.Config.IsReadOnly(repo.GetGoPath()) { continue } @@ -367,9 +363,11 @@ func makeWritableWindow(pb *gitpb.Repos) (*gadgets.GenericWindow, *gitpb.ReposTa log.Info("todo: run git pull on each repo") }) - grid.NewButton("do repos.ReScan()", func() { - t.Update() - }) + /* + grid.NewButton("do repos.ReScan()", func() { + t.Update() + }) + */ tbox := win.Bottom.Box() t.SetParent(tbox) |
