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

Function NewIdentityCache

cache/identity_cache.go:23–29  ·  view source on GitHub ↗
(i *identity.Identity, repo repository.ClockedRepo, entityUpdated func(id entity.Id) error)

Source from the content-addressed store, hash-verified

21}
22
23func NewIdentityCache(i *identity.Identity, repo repository.ClockedRepo, entityUpdated func(id entity.Id) error) *IdentityCache {
24 return &IdentityCache{
25 repo: repo,
26 entityUpdated: entityUpdated,
27 Identity: i,
28 }
29}
30
31func (i *IdentityCache) notifyUpdated() error {
32 return i.entityUpdated(i.Identity.Id())

Callers 2

NewRepoCacheIdentityFunction · 0.85
finishIdentityMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected