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

Function NewCreateOp

entities/bug/op_create.go:86–93  ·  view source on GitHub ↗
(author identity.Interface, unixTime int64, title, message string, files []repository.Hash)

Source from the content-addressed store, hash-verified

84}
85
86func NewCreateOp(author identity.Interface, unixTime int64, title, message string, files []repository.Hash) *CreateOperation {
87 return &CreateOperation{
88 OpBase: dag.NewOpBase(CreateOp, author, unixTime),
89 Title: title,
90 Message: message,
91 Files: files,
92 }
93}
94
95// CreateTimelineItem replace a Create operation in the Timeline and hold its edition history
96type CreateTimelineItem struct {

Callers 7

TestGithubImporterFunction · 0.92
TestGitlabImportFunction · 0.92
CreateFunction · 0.85
TestEditFunction · 0.85
TestCreateSerializeFunction · 0.85
TestValidateFunction · 0.85
TestMetadataFunction · 0.85

Calls 1

NewOpBaseFunction · 0.92

Tested by 6

TestGithubImporterFunction · 0.74
TestGitlabImportFunction · 0.74
TestEditFunction · 0.68
TestCreateSerializeFunction · 0.68
TestValidateFunction · 0.68
TestMetadataFunction · 0.68