diff options
Diffstat (limited to 'doPatch.go')
| -rw-r--r-- | doPatch.go | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -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 |
