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

Function NewIdentity

commands/cmdjson/json_common.go:18–25  ·  view source on GitHub ↗
(i identity.Interface)

Source from the content-addressed store, hash-verified

16}
17
18func NewIdentity(i identity.Interface) Identity {
19 return Identity{
20 Id: i.Id().String(),
21 HumanId: i.Id().Human(),
22 Name: i.Name(),
23 Login: i.Login(),
24 }
25}
26
27func NewIdentityFromExcerpt(excerpt *cache.IdentityExcerpt) Identity {
28 return Identity{

Callers 2

NewBugSnapshotFunction · 0.70
NewBugCommentFunction · 0.70

Calls 5

StringMethod · 0.65
IdMethod · 0.65
NameMethod · 0.65
LoginMethod · 0.65
HumanMethod · 0.45

Tested by

no test coverage detected