diff options
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() { |
