diff options
Diffstat (limited to 'find.go')
| -rw-r--r-- | find.go | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -29,6 +29,20 @@ func doFind() *gitpb.Repos { return findAll() } +func doFindRepo(reponame string) *gitpb.Repos { + repos := gitpb.NewRepos() + + found := me.forge.Repos.FindByNamespace(reponame) + if found != nil { + repos.Append(found) + } + found = me.forge.Repos.FindByFullPath(reponame) + if found != nil { + repos.Append(found) + } + return repos +} + func findRepos() *gitpb.Repos { if argv.Show == nil { return findMine() |
