diff options
| author | Jeff Carr <[email protected]> | 2025-01-17 10:59:05 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-17 10:59:05 -0600 |
| commit | 9acbb24284ecda4f5ace1cb3d200e363c47c8725 (patch) | |
| tree | 7af266bff19df14c0961d6f05e1df9e4895c5e77 /doCheckout.go | |
| parent | af84727178d1fbe1df04a5f8ee536798f3761d6d (diff) | |
start an 'examine' argv
Diffstat (limited to 'doCheckout.go')
| -rw-r--r-- | doCheckout.go | 55 |
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() |
