From e60c05f670aa3b34d501fc467b5729b89f0f431a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 10 Oct 2025 18:44:04 -0500 Subject: more cleanups. shooting for better code --- find.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'find.go') diff --git a/find.go b/find.go index 6ff3d00..52a94c9 100644 --- a/find.go +++ b/find.go @@ -276,3 +276,24 @@ func cloneReposWithPatches() *gitpb.Repos { } return found } + +// 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 findWorkRepos() (string, error) { + // always run dirty first + me.forge.CheckDirtyQuiet() + + // if no option is given to patch, list out the + // repos that have patches ready in them + found := findReposWithPatches() + found.SortNamespace() + if found.Len() == 0 { + return "you currently have no repos with patches", nil + } + footer := me.forge.PrintDefaultTB(found) + return "repos with patches or unsaved changes: " + footer, nil +} -- cgit v1.2.3