summaryrefslogtreecommitdiff
path: root/doPatch.go
diff options
context:
space:
mode:
Diffstat (limited to 'doPatch.go')
-rw-r--r--doPatch.go17
1 files changed, 13 insertions, 4 deletions
diff --git a/doPatch.go b/doPatch.go
index 52a90f1..1abf5b3 100644
--- a/doPatch.go
+++ b/doPatch.go
@@ -56,18 +56,27 @@ func doPatch() error {
return nil
}
+ if argv.Patch.Repos != nil {
+ dumpDirtyRepos()
+ }
+
+ // if nothing, show patches & dirty repos
+ me.forge.Patchsets.PrintTable()
+ dumpDirtyRepos()
+ return nil
+}
+
+func dumpDirtyRepos() {
// always run dirty first
- me.forge.CheckDirty()
+ me.forge.CheckDirtyQuiet()
// if no option is given to patch, list out the
// repos that have patches ready in them
found := findReposWithPatches()
if found.Len() == 0 {
- log.Info("you currently have no patches in your user branches")
- return nil
+ log.Info("you currently have no repos with patches")
}
me.forge.PrintHumanTable(found)
- return nil
}
// returns bad if patches can not be applied