summaryrefslogtreecommitdiff
path: root/doCheckout.go
diff options
context:
space:
mode:
Diffstat (limited to 'doCheckout.go')
-rw-r--r--doCheckout.go55
1 files changed, 0 insertions, 55 deletions
diff --git a/doCheckout.go b/doCheckout.go
index aad0e88..6de3d3c 100644
--- a/doCheckout.go
+++ b/doCheckout.go
@@ -1,66 +1,11 @@
package main
import (
- "time"
-
- "go.wit.com/lib/gui/shell"
"go.wit.com/lib/protobuf/forgepb"
"go.wit.com/lib/protobuf/gitpb"
"go.wit.com/log"
)
-func doGitPull() {
- allerr := me.found.RillGitPull(40, 5)
-
- all := me.found.SortByFullPath()
- for all.Scan() {
- repo := all.Next()
- result := allerr[repo]
- if result.Error == gitpb.ErrorGitPullOnDirty {
- log.Info("skip git pull. repo is dirty", repo.GetGoPath())
- continue
- }
- if result.Error == gitpb.ErrorGitPullOnLocal {
- log.Info("skip git pull. local branch ", repo.GetGoPath())
- continue
- }
- if result.Exit == 0 {
- continue
- }
-
- log.Info("git pull error:", repo.GetGoPath(), result.Error)
- log.Info("git pull error:", repo.GetGoPath(), result.Stdout)
- }
-
-}
-
-func doCheckDirtyAndConfigSave() {
- var count int
- now := time.Now()
- // log.Info("before findAll()")
- all := me.found.SortByFullPath()
- for all.Scan() {
- repo := all.Next()
- // log.Info("before isDirty()")
- dirty := repo.IsDirty()
- if repo.CheckDirty() {
- count += 1
- if me.found.AppendByGoPath(repo) {
- log.Info("doCheckDirtyAndConfigSave() repo already existed", repo.GetGoPath())
- }
- if !dirty {
- configSave = true
- }
- } else {
- if dirty {
- configSave = true
- }
- }
- }
- log.Printf("dirty check (%d repos) took:%s\n", count, shell.FormatDuration(time.Since(now)))
- me.forge.SetConfigSave(configSave)
-}
-
func IsEverythingOnDevel() bool {
me.found = new(gitpb.Repos)
all := me.forge.Repos.SortByFullPath()