summaryrefslogtreecommitdiff
path: root/doPull.go
diff options
context:
space:
mode:
Diffstat (limited to 'doPull.go')
-rw-r--r--doPull.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/doPull.go b/doPull.go
index adc83f3..d174d24 100644
--- a/doPull.go
+++ b/doPull.go
@@ -71,6 +71,13 @@ func doGitPullNew() error {
check = findReposWithPatches()
}
+ if argv.Pull.Check != nil {
+ // TODO: never wrote this yet
+ // update, err := me.forge.CheckVersions()
+ // return err
+ return nil
+ }
+
if check.Len() == 0 {
// check = doFind()
check = findAll()
@@ -79,6 +86,11 @@ func doGitPullNew() error {
}
me.forge.PrintHumanTableFull(check)
+ if argv.Pull.Dirty != nil {
+ log.Info("dirty count =", check.Len())
+ return nil
+ }
+
found, err := me.forge.LookupPB(check)
if err != nil {
log.Info("LookupPB() failed", err, "len(check)=", check.Len())