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

Function NewSetMetadataOp

entities/bug/op_set_metadata.go:9–11  ·  view source on GitHub ↗
(author identity.Interface, unixTime int64, target entity.Id, newMetadata map[string]string)

Source from the content-addressed store, hash-verified

7)
8
9func NewSetMetadataOp(author identity.Interface, unixTime int64, target entity.Id, newMetadata map[string]string) *dag.SetMetadataOperation[*Snapshot] {
10 return dag.NewSetMetadataOp[*Snapshot](SetMetadataOp, author, unixTime, target, newMetadata)
11}
12
13// SetMetadata is a convenience function to add metadata on another operation
14func SetMetadata(b Interface, author identity.Interface, unixTime int64, target entity.Id, newMetadata map[string]string) (*dag.SetMetadataOperation[*Snapshot], error) {

Callers 1

SetMetadataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected