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

Method Mutate

cache/identity_cache.go:35–43  ·  view source on GitHub ↗
(repo repository.RepoClock, f func(*identity.Mutator))

Source from the content-addressed store, hash-verified

33}
34
35func (i *IdentityCache) Mutate(repo repository.RepoClock, f func(*identity.Mutator)) error {
36 i.mu.Lock()
37 err := i.Identity.Mutate(repo, f)
38 i.mu.Unlock()
39 if err != nil {
40 return err
41 }
42 return i.notifyUpdated()
43}
44
45func (i *IdentityCache) Commit() error {
46 i.mu.Lock()

Callers

nothing calls this directly

Calls 3

notifyUpdatedMethod · 0.95
LockMethod · 0.65
MutateMethod · 0.65

Tested by

no test coverage detected