summaryrefslogtreecommitdiff
path: root/windowReposNew.go
diff options
context:
space:
mode:
Diffstat (limited to 'windowReposNew.go')
-rw-r--r--windowReposNew.go18
1 files changed, 6 insertions, 12 deletions
diff --git a/windowReposNew.go b/windowReposNew.go
index 994374c..68c2178 100644
--- a/windowReposNew.go
+++ b/windowReposNew.go
@@ -35,7 +35,7 @@ func (w *stdReposTableWin) Toggle() {
}
func makeWindowForPB() *gadgets.GenericWindow {
- win := gadgets.NewGenericWindow("Forge Repos Raw Protobuf View", "Filter Git Repositories")
+ win := gadgets.NewGenericWindow("Forge Repos Protobuf View", "Display Git Repositories")
return win
}
@@ -64,23 +64,17 @@ func makeReposWinNew() *gadgets.GenericWindow {
log.Info("table has uuid", t.GetUuid())
})
- grid.NewButton("with patches", func() {
+ grid.NewButton("to publish", func() {
if t != nil {
t.Delete()
t = nil
}
- found := new(gitpb.Repos)
- all := me.forge.Repos.SortByFullPath()
- for all.Scan() {
- repo := all.Next()
- if me.forge.Config.IsReadOnly(repo.GetGoPath()) {
- continue
- }
- found.AppendByGoPath(repo)
- }
+ me.found = new(gitpb.Repos)
+ findReposWithPatches()
+ me.forge.PrintHumanTable(me.found)
// make the window for the first time
- t = addWindowPB(insertWin, found)
+ t = addWindowPB(insertWin, me.found)
f := func(repo *gitpb.Repo) {
log.Info("got to ReposTable.Custom() id =", repo.GetGoPath(), repo.GetCurrentVersion())
}