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

Function NewRepoCache

cache/repo_cache.go:78–80  ·  view source on GitHub ↗

NewRepoCache create or open a cache on top of a raw repository. The caller is expected to read all returned events before the cache is considered ready to use.

(r repository.ClockedRepo)

Source from the content-addressed store, hash-verified

76// The caller is expected to read all returned events before the cache is considered
77// ready to use.
78func NewRepoCache(r repository.ClockedRepo) (*RepoCache, chan BuildEvent) {
79 return NewNamedRepoCache(r, defaultRepoName)
80}
81
82// NewNamedRepoCache create or open a named cache on top of a raw repository.
83// The caller is expected to read all returned events before the cache is considered

Callers 2

LoadBackendFunction · 0.92
NewRepoCacheNoEventsFunction · 0.85

Calls 1

NewNamedRepoCacheFunction · 0.85

Tested by

no test coverage detected