MCPcopy Create free account
hub / github.com/git-bug/git-bug / CommitAsNeeded

Method CommitAsNeeded

cache/cached.go:80–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78}
79
80func (e *CachedEntityBase[SnapT, OpT]) CommitAsNeeded() error {
81 e.mu.Lock()
82 err := e.entity.CommitAsNeeded(e.repo)
83 if err != nil {
84 e.mu.Unlock()
85 return err
86 }
87 e.mu.Unlock()
88 return e.notifyUpdated()
89}
90
91func (e *CachedEntityBase[SnapT, OpT]) NeedCommit() bool {
92 e.mu.RLock()

Callers

nothing calls this directly

Calls 3

notifyUpdatedMethod · 0.95
LockMethod · 0.65
CommitAsNeededMethod · 0.65

Tested by

no test coverage detected