summaryrefslogtreecommitdiff
path: root/doPatch.go
diff options
context:
space:
mode:
Diffstat (limited to 'doPatch.go')
-rw-r--r--doPatch.go14
1 files changed, 11 insertions, 3 deletions
diff --git a/doPatch.go b/doPatch.go
index c1e301b..63d6323 100644
--- a/doPatch.go
+++ b/doPatch.go
@@ -51,7 +51,7 @@ func doPatchSubmit() error {
func doPatch() error {
if argv.Patch.Repos != nil {
- dumpDirtyRepos()
+ dumpWorkRepos()
return nil
}
@@ -156,11 +156,17 @@ func doPatch() error {
// if nothing, show patches & dirty repos
me.forge.Patchsets.PrintTable()
- dumpDirtyRepos()
+ dumpWorkRepos()
return nil
}
-func dumpDirtyRepos() {
+// Shows repos that are:
+// - git dirty repos
+// - repos with 'user' branch patches not in 'devel' branch
+// - repos with awaiting master branch verions
+//
+// return true if any are found
+func dumpWorkRepos() bool {
// always run dirty first
me.forge.CheckDirtyQuiet()
@@ -169,9 +175,11 @@ func dumpDirtyRepos() {
found := findReposWithPatches()
if found.Len() == 0 {
log.Info("you currently have no repos with patches")
+ return false
} else {
me.forge.PrintHumanTable(found)
}
+ return true
}
// returns bad if patches can not be applied