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

Method NewRaw

cache/identity_subcache.go:79–85  ·  view source on GitHub ↗
(name string, email string, login string, avatarUrl string, keys []*identity.Key, metadata map[string]string)

Source from the content-addressed store, hash-verified

77}
78
79func (c *RepoCacheIdentity) NewRaw(name string, email string, login string, avatarUrl string, keys []*identity.Key, metadata map[string]string) (*IdentityCache, error) {
80 i, err := identity.NewIdentityFull(c.repo, name, email, login, avatarUrl, keys)
81 if err != nil {
82 return nil, err
83 }
84 return c.finishIdentity(i, metadata)
85}
86
87func (c *RepoCacheIdentity) NewFromGitUser() (*IdentityCache, error) {
88 return c.NewFromGitUserRaw(nil)

Callers 2

NewMethod · 0.95
NewFullMethod · 0.95

Calls 2

finishIdentityMethod · 0.95
NewIdentityFullFunction · 0.92

Tested by

no test coverage detected