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

Method EditCreateCommentRaw

cache/bug_cache.go:165–173  ·  view source on GitHub ↗

EditCreateCommentRaw is a convenience function to edit the body of a bug (the first comment)

(author identity.Interface, unixTime int64, body string, metadata map[string]string)

Source from the content-addressed store, hash-verified

163
164// EditCreateCommentRaw is a convenience function to edit the body of a bug (the first comment)
165func (c *BugCache) EditCreateCommentRaw(author identity.Interface, unixTime int64, body string, metadata map[string]string) (entity.CombinedId, *bug.EditCommentOperation, error) {
166 c.mu.Lock()
167 commentId, op, err := bug.EditCreateComment(c.entity, author, unixTime, body, nil, metadata)
168 c.mu.Unlock()
169 if err != nil {
170 return entity.UnsetCombinedId, nil, err
171 }
172 return commentId, op, c.notifyUpdated()
173}
174
175func (c *BugCache) EditComment(target entity.CombinedId, message string) (*bug.EditCommentOperation, error) {
176 author, err := c.getUserIdentity()

Callers 2

EditCreateCommentMethod · 0.95
ensureChangeMethod · 0.80

Calls 3

EditCreateCommentFunction · 0.92
LockMethod · 0.65
notifyUpdatedMethod · 0.45

Tested by

no test coverage detected