MCPcopy Create free account
hub / github.com/antonmedv/gitmal / String

Method String

pkg/gitdiff/patch_identity.go:14–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12}
13
14func (i PatchIdentity) String() string {
15 name := i.Name
16 if name == "" {
17 name = `""`
18 }
19 return fmt.Sprintf("%s <%s>", name, i.Email)
20}
21
22// ParsePatchIdentity parses a patch identity string. A patch identity contains
23// an email address and an optional name in [RFC 5322] format. This is either a

Callers 2

unquotePairsFunction · 0.45
normalizeSpaceFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected