diff options
| author | Jeff Carr <[email protected]> | 2025-09-03 19:06:08 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-03 19:06:08 -0500 |
| commit | 6f4ec05ccb6875aa23e3601c18973ac1759fb456 (patch) | |
| tree | ca3e484177c2283588575451dd8915a0e57f039e /doFind.go | |
| parent | e896cae995a1d0be5f172bf856b732b5fbf14017 (diff) | |
common code moved to forgepb
Diffstat (limited to 'doFind.go')
| -rw-r--r-- | doFind.go | 16 |
1 files changed, 2 insertions, 14 deletions
@@ -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() { |
