summaryrefslogtreecommitdiff
path: root/doPatch.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-10 18:44:04 -0500
committerJeff Carr <[email protected]>2025-10-10 18:44:04 -0500
commite60c05f670aa3b34d501fc467b5729b89f0f431a (patch)
treeba920a3f50d3c483506a427d95601b69bf07a896 /doPatch.go
parent22e5c5241ab4ad908ab9022a81322eae1af8fe93 (diff)
more cleanups. shooting for better code
Diffstat (limited to 'doPatch.go')
-rw-r--r--doPatch.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/doPatch.go b/doPatch.go
index 75e23a6..c6fc031 100644
--- a/doPatch.go
+++ b/doPatch.go
@@ -285,30 +285,6 @@ func isPatchIdApplied(repo *gitpb.Repo, patch *forgepb.Patch) (string, string, e
return patchId, newhash, nil
}
-// 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 showWorkRepos() bool {
- // 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 {
- log.Info("you currently have no repos with patches")
- return false
- } else {
- footer := me.forge.PrintDefaultTB(found)
- log.Info("repos with patches or unsaved changes:", footer)
- }
- return true
-}
-
func cleanSubject(line string) string {
// Regular expression to remove "Subject:" and "[PATCH...]" patterns
re := regexp.MustCompile(`(?i)^Subject:\s*(\[\s*PATCH[^\]]*\]\s*)?`)