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

Method NewFromGitUserRaw

cache/identity_subcache.go:91–97  ·  view source on GitHub ↗
(metadata map[string]string)

Source from the content-addressed store, hash-verified

89}
90
91func (c *RepoCacheIdentity) NewFromGitUserRaw(metadata map[string]string) (*IdentityCache, error) {
92 i, err := identity.NewFromGitUser(c.repo)
93 if err != nil {
94 return nil, err
95 }
96 return c.finishIdentity(i, metadata)
97}
98
99func (c *RepoCacheIdentity) finishIdentity(i *identity.Identity, metadata map[string]string) (*IdentityCache, error) {
100 for key, value := range metadata {

Callers 2

NewFromGitUserMethod · 0.95
FinishConfigFunction · 0.80

Calls 2

finishIdentityMethod · 0.95
NewFromGitUserFunction · 0.92

Tested by

no test coverage detected