diff options
| author | Jeff Carr <[email protected]> | 2025-07-01 18:23:38 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-07-01 18:23:38 -0500 |
| commit | d2a0aa3098e48d32f41abf0a90340543775366d7 (patch) | |
| tree | 4bf550ac018ba21cdf1224c8160bd0df30c77417 /doPull.go | |
| parent | 47b7222445a382445e7a5d8ced74ebeec17810ec (diff) | |
more doFind() cleanups
Diffstat (limited to 'doPull.go')
| -rw-r--r-- | doPull.go | 24 |
1 files changed, 23 insertions, 1 deletions
@@ -4,6 +4,7 @@ package main import ( + "fmt" "time" "go.wit.com/lib/gui/shell" @@ -42,7 +43,27 @@ func rillPull(repo *gitpb.Repo) error { // is every repo on the devel branch? -func doGitPullNew() { +func doGitPullNew() error { + if argv.GitPull == nil { + return fmt.Errorf("not really 'fetch pull'") + } + + if argv.GitPull.Test != nil { + log.Info("list repo's with updates here") + found := doFind() + // me.forge.PrintHumanTable(found) + me.forge.PrintHumanTableFull(found) + /* + // print out the repos + if argv.List.Full { + me.forge.PrintHumanTableFull(found) + } else { + me.forge.PrintHumanTable(found) + } + */ + return nil + } + now := time.Now() pullcount := me.forge.RillFuncError(rillPull) count := me.forge.RillReload() @@ -52,6 +73,7 @@ func doGitPullNew() { total, count, nope, _ := IsEverythingOnMaster() log.Printf("Master branch check. %d total repos. (%d git pulled) (%d not on master branch) (%s) git pull total=%d\n", total, count, nope, shell.FormatDuration(time.Since(now)), pullcount) + return nil } /* |
