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

Method NewFull

cache/identity_subcache.go:75–77  ·  view source on GitHub ↗

NewFull create a new identity The new identity is written in the repository (commit)

(name string, email string, login string, avatarUrl string, keys []*identity.Key)

Source from the content-addressed store, hash-verified

73// NewFull create a new identity
74// The new identity is written in the repository (commit)
75func (c *RepoCacheIdentity) NewFull(name string, email string, login string, avatarUrl string, keys []*identity.Key) (*IdentityCache, error) {
76 return c.NewRaw(name, email, login, avatarUrl, keys, nil)
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)

Callers

nothing calls this directly

Calls 1

NewRawMethod · 0.95

Tested by

no test coverage detected