diff options
| author | Jeff Carr <[email protected]> | 2025-10-12 00:10:42 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-12 00:10:42 -0500 |
| commit | bb87443f4319e919b83b350292eb8ca3008e58c9 (patch) | |
| tree | d8ca102a8ce18005cc1344db40aeb4b75749ab43 /doNormal.go | |
| parent | 850642580bd5e4d425a66582c86c6730d328580c (diff) | |
okay
Diffstat (limited to 'doNormal.go')
| -rw-r--r-- | doNormal.go | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/doNormal.go b/doNormal.go index 28bf1a4..e31e015 100644 --- a/doNormal.go +++ b/doNormal.go @@ -6,7 +6,6 @@ package main // checks that repos are in a "normal" state import ( - "errors" "fmt" "path/filepath" "strings" @@ -101,22 +100,21 @@ func doNormalOld() bool { if count > 0 { log.Info("Some repos are not in a 'normal' state. error count =", count) log.Info("TODO: list the repos here. forge patch repos?") - s, err := findWorkRepos() - _ = s - _ = err + found := findWorkRepos() + found.SortNamespace() + if found.Len() == 0 { + log.Info("you currently have no repos with patches") + // return "you currently have no repos with patches", nil + } + footer := me.forge.PrintDefaultTB(found) + log.Info("repos with patches or unsaved changes: " + footer) + // return "repos with patches or unsaved changes: " + footer, nil config.SetChanged("repos", true) return false } return true } -var ErrorLocalDevelBranch error = errors.New("devel branch problem") -var ErrorLocalMasterBranch error = errors.New("master branch problem") -var ErrorNoUserBranch error = errors.New("no user branch") -var ErrorNoDevelBranch error = errors.New("no devel branch") -var ErrorNoMasterBranch error = errors.New("no master branch") -var ErrorLocalBehindDevel error = errors.New("local behind devel") - // 99% of the time, the repos during development should be on your user branch. // error out if it's not // this checks to see if a devel and user branch exist |
