diff options
| author | Jeff Carr <[email protected]> | 2025-09-08 13:48:06 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-08 13:48:06 -0500 |
| commit | ce813a345030dffa9d997cb837cc8be99b9c5946 (patch) | |
| tree | f74831b31524683476199d8ec5545310fbc8d0d3 /doPatch.go | |
| parent | 11bf5481c7cb393cf2d3416a9f64be078da27e85 (diff) | |
common code. add "gui" to open the guiv0.22.153
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 |
