summaryrefslogtreecommitdiff
path: root/doPull.go
diff options
context:
space:
mode:
Diffstat (limited to 'doPull.go')
-rw-r--r--doPull.go24
1 files changed, 23 insertions, 1 deletions
diff --git a/doPull.go b/doPull.go
index 000728a..35644a6 100644
--- a/doPull.go
+++ b/doPull.go
@@ -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
}
/*