summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
Diffstat (limited to 'main.go')
-rw-r--r--main.go42
1 files changed, 0 insertions, 42 deletions
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
-}
-*/