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

Method Commit

cache/cached.go:69–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67}
68
69func (e *CachedEntityBase[SnapT, OpT]) Commit() error {
70 e.mu.Lock()
71 err := e.entity.Commit(e.repo)
72 if err != nil {
73 e.mu.Unlock()
74 return err
75 }
76 e.mu.Unlock()
77 return e.notifyUpdated()
78}
79
80func (e *CachedEntityBase[SnapT, OpT]) CommitAsNeeded() error {
81 e.mu.Lock()

Callers

nothing calls this directly

Calls 3

notifyUpdatedMethod · 0.95
LockMethod · 0.65
CommitMethod · 0.65

Tested by

no test coverage detected