From 78e883a1066904b89658cd48cba4facb8dd18eac Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 4 Sep 2025 18:32:01 -0500 Subject: more work on patches --- doPatch.go | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'doPatch.go') 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 -- cgit v1.2.3