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

Function Read

entity/dag/example_test.go:288–290  ·  view source on GitHub ↗

Read is a helper to load a ProjectConfig from a Repository

(repo repository.ClockedRepo, id entity.Id)

Source from the content-addressed store, hash-verified

286
287// Read is a helper to load a ProjectConfig from a Repository
288func Read(repo repository.ClockedRepo, id entity.Id) (*ProjectConfig, error) {
289 return dag.Read(def, wrapper, repo, simpleResolvers(repo), id)
290}
291
292func simpleResolvers(repo repository.ClockedRepo) entity.Resolvers {
293 // resolvers can look a bit complex or out of place here, but it's an important concept

Callers 2

ReadWithResolverFunction · 0.92
Example_entityFunction · 0.70

Calls 1

simpleResolversFunction · 0.70

Tested by

no test coverage detected