summaryrefslogtreecommitdiff
path: root/doPatch.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-04 18:32:01 -0500
committerJeff Carr <[email protected]>2025-09-04 18:32:01 -0500
commit78e883a1066904b89658cd48cba4facb8dd18eac (patch)
treebb96848018e90204cda3f87fa5803843158fca03 /doPatch.go
parent19ce7eef563c3b72e0bf3947bb130e5e96b0ebbd (diff)
more work on patches
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