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

Function New

entity/dag/entity.go:55–59  ·  view source on GitHub ↗

New create an empty Entity

(definition Definition)

Source from the content-addressed store, hash-verified

53
54// New create an empty Entity
55func New(definition Definition) *Entity {
56 return &Entity{
57 Definition: definition,
58 }
59}
60
61// Read will read and decode a stored local Entity from a repository
62func Read[EntityT entity.Interface](def Definition, wrapper func(e *Entity) EntityT, repo repository.ClockedRepo, resolvers entity.Resolvers, id entity.Id) (EntityT, error) {

Callers 9

NewBugFunction · 0.92
NewProjectConfigFunction · 0.92
TestWriteReadFunction · 0.85
TestEntityPushPullFunction · 0.85
TestListLocalIdsFunction · 0.85
TestMergeFunction · 0.85
TestRemoveFunction · 0.85
TestRemoveAllFunction · 0.85

Calls

no outgoing calls

Tested by 8

NewProjectConfigFunction · 0.74
TestWriteReadFunction · 0.68
TestEntityPushPullFunction · 0.68
TestListLocalIdsFunction · 0.68
TestMergeFunction · 0.68
TestRemoveFunction · 0.68
TestRemoveAllFunction · 0.68