From bb87443f4319e919b83b350292eb8ca3008e58c9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 Oct 2025 00:10:42 -0500 Subject: okay --- defaultBehavior.go | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'defaultBehavior.go') diff --git a/defaultBehavior.go b/defaultBehavior.go index 61f3224..0558493 100644 --- a/defaultBehavior.go +++ b/defaultBehavior.go @@ -15,16 +15,13 @@ func doDefaultBehavior() (string, error) { if me.forge.Config.Mode == forgepb.ForgeMode_NORMAL || me.forge.Config.Mode == forgepb.ForgeMode_USER { // PROBABLY YOU ARE WRITING CODE // got to the end with nothing to do (?) - s, err := findWorkRepos() - // found some repos at least - // every repo is in a really clean state. no extra files anywhere - // no dirty repos, no repos that need to be published - // nothing different between user and master branch version. not common - - if err == nil { - log.Info("All of your git repositories appear to be in perfect shape") + found := findWorkRepos() + if found.Len() == 0 { + return "you have no repos with patches (list them all with --show)", nil } - return s, err + found.SortNamespace() + footer := me.forge.PrintDefaultTB(found) + return "repos with patches or unsaved changes: " + footer, nil } if me.forge.Config.Mode == forgepb.ForgeMode_MASTER { -- cgit v1.2.3