summaryrefslogtreecommitdiff
path: root/find.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-11-03 13:58:21 -0600
committerJeff Carr <[email protected]>2025-11-03 13:58:21 -0600
commit7bfca718eae796e5b659096366b2e284091b5d9c (patch)
treefbc579cb655d154f116ad99a301a903ade9d76c9 /find.go
parent5849f18a91fd7877ad5fb8165b29a3df8c5f3ed1 (diff)
does check & update of refs
Diffstat (limited to 'find.go')
-rw-r--r--find.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/find.go b/find.go
index 3030f2b..f3c84a4 100644
--- a/find.go
+++ b/find.go
@@ -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()