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

Method RegisterDefaultRepository

cache/multi_repo_cache.go:46–48  ·  view source on GitHub ↗

RegisterDefaultRepository register an unnamed repository. Use this for single-repo setup

(repo repository.ClockedRepo)

Source from the content-addressed store, hash-verified

44
45// RegisterDefaultRepository register an unnamed repository. Use this for single-repo setup
46func (c *MultiRepoCache) RegisterDefaultRepository(repo repository.ClockedRepo) (*RepoCache, chan BuildEvent) {
47 return c.RegisterRepository(repo, defaultRepoName)
48}
49
50// DefaultRepo retrieve the default repository
51func (c *MultiRepoCache) DefaultRepo() (*RepoCache, error) {

Callers 3

runWebUIFunction · 0.95
TestGitFileHandlersFunction · 0.95
TestQueriesFunction · 0.95

Calls 1

RegisterRepositoryMethod · 0.95

Tested by 2

TestGitFileHandlersFunction · 0.76
TestQueriesFunction · 0.76