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

Method load

api/graphql/models/lazy_bug.go:53–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

51}
52
53func (lb *lazyBug) load() error {
54 lb.mu.Lock()
55 defer lb.mu.Unlock()
56
57 if lb.snap != nil {
58 return nil
59 }
60
61 b, err := lb.cache.Bugs().Resolve(lb.excerpt.Id())
62 if err != nil {
63 return err
64 }
65
66 lb.snap = b.Snapshot()
67 return nil
68}
69
70func (lb *lazyBug) identity(id entity.Id) (IdentityWrapper, error) {
71 i, err := lb.cache.Identities().ResolveExcerpt(id)

Callers 3

CommentsMethod · 0.95
TimelineMethod · 0.95
OperationsMethod · 0.95

Calls 5

BugsMethod · 0.80
SnapshotMethod · 0.80
LockMethod · 0.65
ResolveMethod · 0.65
IdMethod · 0.65

Tested by

no test coverage detected