summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
Diffstat (limited to 'find.go')
-rw-r--r--find.go14
1 files changed, 8 insertions, 6 deletions
diff --git a/find.go b/find.go
index ca1d4c1..0c1c8e8 100644
--- a/find.go
+++ b/find.go
@@ -20,11 +20,6 @@ func (f *FindCmd) findRepos() {
return
}
- if f.Pub != nil {
- findPublishable()
- return
- }
-
if f.All {
findAll()
return
@@ -137,13 +132,20 @@ func findReposWithPatches() {
all := me.forge.Repos.SortByFullPath()
for all.Scan() {
repo := all.Next()
- if repo.GetUserVersion() == "" || repo.GetUserVersion() == "uerr" {
+ if repo.GetTargetVersion() != "" {
+ // add everything that has a target version set
+ me.found.AppendByGoPath(repo)
continue
}
if repo.IsDirty() {
+ // always add dirty branches
me.found.AppendByGoPath(repo)
continue
}
+ if repo.GetUserVersion() == "" || repo.GetUserVersion() == "uerr" {
+ // skip anything without a user branch
+ continue
+ }
if repo.GetUserVersion() != repo.GetDevelVersion() {
me.found.AppendByGoPath(repo)
continue