summaryrefslogtreecommitdiff
path: root/doGui.go
diff options
context:
space:
mode:
Diffstat (limited to 'doGui.go')
-rw-r--r--doGui.go35
1 files changed, 0 insertions, 35 deletions
diff --git a/doGui.go b/doGui.go
index 26b74b9..943dd62 100644
--- a/doGui.go
+++ b/doGui.go
@@ -354,41 +354,6 @@ func makeStandardReposWindow(title string, pb *gitpb.Repos) (*gitpb.ReposTable,
return t, box
}
-func makeWritableWindow(pb *gitpb.Repos) (*gadgets.GenericWindow, *gitpb.ReposTable) {
- win := gadgets.NewGenericWindow("Repos You have write access to", "Configure")
- t := pb.NewTable("testForgeRepos")
- t.NewUuid()
-
- grid := win.Group.RawGrid()
- grid.NewButton("git pull", func() {
- log.Info("todo: run git pull on each repo")
- })
-
- grid.NewButton("do repos.ReScan()", func() {
- t.Update()
- })
-
- tbox := win.Bottom.Box()
- t.SetParent(tbox)
-
- sf := t.AddStringFunc("repo", func(r *gitpb.Repo) string {
- return r.GetGoPath()
- })
- sf.Custom = func(r *gitpb.Repo) {
- log.Info("do button click on", r.GetGoPath())
- }
- t.AddTimeFunc("age", func(repo *gitpb.Repo) time.Time {
- return repo.NewestTime()
- })
- t.AddMasterVersion()
- t.AddDevelVersion()
- t.AddUserVersion()
- t.AddCurrentBranchName()
- t.AddState()
- t.ShowTable()
- return win, t
-}
-
func findMergeToDevel() *gitpb.Repos {
found := gitpb.NewRepos()