From a0428fa5f621d75a04ae1a85807f9616707d6ddd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 8 Jan 2025 00:52:17 -0600 Subject: move code into forgepb --- main.go | 42 ------------------------------------------ 1 file changed, 42 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index b1f1191..c32de01 100644 --- a/main.go +++ b/main.go @@ -110,23 +110,10 @@ func main() { me.release.box.Disable() me.Disable() - // register a Show/Hide function for the repo list table - // me.repos.View.RegisterHideFunction(hideFunction) - // scan in the State of all the repos // TODO: should not really be necessary directly after init() me.repos.View.ScanRepositories() - loop := me.repos.View.ReposSortByName() - for loop.Scan() { - repo := loop.Repo() - if me.forge.Config.IsPrivate(repo.GetGoPath()) { - // repo.Status.SetPrivate(true) - } else { - // repo.Status.SetPrivate(false) - } - } - // todo: add this to forgepb me.startRepo = me.forge.FindWorkingDirRepo() @@ -147,32 +134,3 @@ func main() { // me.summary.Update() }) } - -/* -// start the initail scan and make sure each repo is set -// to the master branch -func setAllBranchesToMaster() bool { - var worked bool = true - loop := me.repos.View.ReposSortByName() - for loop.Scan() { - repo := loop.Repo() - if repo.ReadOnly() { - continue - } - if repo.IsDirty() { - continue - } - if repo.Status.Whitelist { - continue - } - if repo.Status.CheckoutMaster() { - log.Warn("git checkout master branch worked", repo.Name()) - } else { - log.Warn("git checkout master branch failed", repo.Name()) - worked = false - } - // repo.NewScan() - } - return worked -} -*/ -- cgit v1.2.3