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