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

Method SetMetadataRaw

cache/bug_cache.go:211–219  ·  view source on GitHub ↗
(author identity.Interface, unixTime int64, target entity.Id, newMetadata map[string]string)

Source from the content-addressed store, hash-verified

209}
210
211func (c *BugCache) SetMetadataRaw(author identity.Interface, unixTime int64, target entity.Id, newMetadata map[string]string) (*dag.SetMetadataOperation[*bug.Snapshot], error) {
212 c.mu.Lock()
213 op, err := bug.SetMetadata(c.entity, author, unixTime, target, newMetadata)
214 c.mu.Unlock()
215 if err != nil {
216 return nil, err
217 }
218 return op, c.notifyUpdated()
219}

Callers 1

SetMetadataMethod · 0.95

Calls 3

SetMetadataFunction · 0.92
LockMethod · 0.65
notifyUpdatedMethod · 0.45

Tested by

no test coverage detected