summaryrefslogtreecommitdiff
path: root/doFind.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-03 19:06:08 -0500
committerJeff Carr <[email protected]>2025-09-03 19:06:08 -0500
commit6f4ec05ccb6875aa23e3601c18973ac1759fb456 (patch)
treeca3e484177c2283588575451dd8915a0e57f039e /doFind.go
parente896cae995a1d0be5f172bf856b732b5fbf14017 (diff)
common code moved to forgepb
Diffstat (limited to 'doFind.go')
-rw-r--r--doFind.go16
1 files changed, 2 insertions, 14 deletions
diff --git a/doFind.go b/doFind.go
index 65edb43..b100ecd 100644
--- a/doFind.go
+++ b/doFind.go
@@ -24,7 +24,7 @@ func doFind() *gitpb.Repos {
}
if argv.List.Dirty {
- return findDirty()
+ return me.forge.FindDirty()
}
return findAll()
@@ -52,7 +52,7 @@ func (f *FindCmd) findRepos() *gitpb.Repos {
}
if f.Dirty {
- return findDirty()
+ return me.forge.FindDirty()
}
if f.User {
@@ -101,18 +101,6 @@ func findFavorites() *gitpb.Repos {
return found
}
-// finds repos that git is reporting as dirty
-func findDirty() *gitpb.Repos {
- found := gitpb.NewRepos()
-
- for repo := range me.forge.Repos.IterByFullPath() {
- if repo.IsDirty() {
- found.AppendByFullPath(repo)
- }
- }
- return found
-}
-
func findAll() *gitpb.Repos {
found := gitpb.NewRepos()
for repo := range me.forge.Repos.IterByFullPath() {