From 074cf1286418617403896117898467625a4356cf Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 9 Feb 2025 03:17:56 -0600 Subject: [PATCH] rm old code --- doGui.go | 47 +++++------------------------------------------ 1 file changed, 5 insertions(+), 42 deletions(-) diff --git a/doGui.go b/doGui.go index 88baa94..f2b1973 100644 --- a/doGui.go +++ b/doGui.go @@ -118,50 +118,13 @@ func drawWindow(win *gadgets.BasicWindow) { } else { argv.Force = false } + + // do the checkout if err := doCheckoutShared(); err != nil { - badExit(err) + log.Info("checkout error:", err) + } else { + log.Info("checkout was ok") } - /* - targetName := me.newBranch.String() - log.Warn("setting all branches to", targetName) - log.Info("auto create branches =", createBranches) - if targetName == "devel" { - now := time.Now() - if err := doAllCheckoutDevel(); err != nil { - } - total, count, nope, _ := IsEverythingOnDevel() - log.Printf("Devel branch check. %d total repos. (%d ok) (%d not on devel branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now))) - if nope != 0 { - log.Info("switching to devel branches failed") - log.Info("auto create branches =", createBranches) - if createBranches { - } else { - log.Info("You should enable the 'auto create branches' checkbox") - } - } - return - } - if targetName == "master" { - if err := doAllCheckoutMaster(); err != nil { - log.Info("switching to master branches failed") - } - return - } - now := time.Now() - // just assume user - if err := doAllCheckoutUser(); err != nil { - } - total, count, nope, err := IsEverythingOnUser() - log.Printf("User branch check. %d total repos. (%d ok) (%d not on user branch) (%s)\n", total, count, nope, shell.FormatDuration(time.Since(now))) - if err != nil { - log.Info("switching to user branches failed") - log.Info("auto create branches =", createBranches) - if createBranches { - } else { - log.Info("You should enable the 'auto create branches' checkbox") - } - } - */ }) me.newBranch = grid.NewDropdown() me.newBranch.AddText("master")