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

Method CommitAsNeeded

cache/identity_cache.go:55–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (i *IdentityCache) CommitAsNeeded() error {
56 i.mu.Lock()
57 err := i.Identity.CommitAsNeeded(i.repo)
58 i.mu.Unlock()
59 if err != nil {
60 return err
61 }
62 return i.notifyUpdated()
63}
64
65func (i *IdentityCache) Lock() {
66 i.mu.Lock()

Callers

nothing calls this directly

Calls 3

notifyUpdatedMethod · 0.95
LockMethod · 0.65
CommitAsNeededMethod · 0.65

Tested by

no test coverage detected