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

Function Read

entities/bug/bug.go:62–64  ·  view source on GitHub ↗

Read will read a bug from a repository

(repo repository.ClockedRepo, id entity.Id)

Source from the content-addressed store, hash-verified

60
61// Read will read a bug from a repository
62func Read(repo repository.ClockedRepo, id entity.Id) (*Bug, error) {
63 return ReadWithResolver(repo, simpleResolvers(repo), id)
64}
65
66// ReadWithResolver will read a bug from its Id, with custom resolvers
67func ReadWithResolver(repo repository.ClockedRepo, resolvers entity.Resolvers, id entity.Id) (*Bug, error) {

Callers 2

ResolveMethod · 0.70
TestIDFunction · 0.70

Calls 2

ReadWithResolverFunction · 0.85
simpleResolversFunction · 0.70

Tested by 1

TestIDFunction · 0.56