MCPcopy Create free account
hub / github.com/git/git / copy_email

Function copy_email

ident.c:147–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145}
146
147static void copy_email(const struct passwd *pw, struct strbuf *email,
148 int *is_bogus)
149{
150 /*
151 * Make up a fake email address
152 * (name + '@' + hostname [+ '.' + domainname])
153 */
154 strbuf_addstr(email, pw->pw_name);
155 strbuf_addch(email, '@');
156
157 if (!add_mailname_host(email))
158 return; /* read from "/etc/mailname" (Debian) */
159 add_domainname(email, is_bogus);
160}
161
162const char *ident_default_name(void)
163{

Callers 1

ident_default_emailFunction · 0.70

Calls 4

strbuf_addstrFunction · 0.85
strbuf_addchFunction · 0.85
add_mailname_hostFunction · 0.85
add_domainnameFunction · 0.85

Tested by

no test coverage detected