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

Function NewIdentityFromExcerpt

commands/cmdjson/json_common.go:27–34  ·  view source on GitHub ↗
(excerpt *cache.IdentityExcerpt)

Source from the content-addressed store, hash-verified

25}
26
27func NewIdentityFromExcerpt(excerpt *cache.IdentityExcerpt) Identity {
28 return Identity{
29 Id: excerpt.Id().String(),
30 HumanId: excerpt.Id().Human(),
31 Name: excerpt.Name,
32 Login: excerpt.Login,
33 }
34}
35
36type Time struct {
37 Timestamp int64 `json:"timestamp"`

Callers 2

userJsonFormatterFunction · 0.92
NewBugExcerptFunction · 0.85

Calls 3

StringMethod · 0.65
IdMethod · 0.65
HumanMethod · 0.45

Tested by

no test coverage detected