MCPcopy Index your code
hub / github.com/git-bug/git-bug / ResolveRepo

Method ResolveRepo

cache/multi_repo_cache.go:64–70  ·  view source on GitHub ↗

ResolveRepo retrieve a repository by name

(name string)

Source from the content-addressed store, hash-verified

62
63// ResolveRepo retrieve a repository by name
64func (c *MultiRepoCache) ResolveRepo(name string) (*RepoCache, error) {
65 r, ok := c.repos[name]
66 if !ok {
67 return nil, fmt.Errorf("unknown repo")
68 }
69 return r, nil
70}
71
72// Close will do anything that is needed to close the cache properly
73func (c *MultiRepoCache) Close() error {

Callers 4

ServeHTTPMethod · 0.80
ServeHTTPMethod · 0.80
RepositoryMethod · 0.80
getRepoMethod · 0.80

Calls 1

ErrorfMethod · 0.80

Tested by

no test coverage detected