MCPcopy Index your code
hub / github.com/git/git / ident_default_name

Function ident_default_name

ident.c:162–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162const char *ident_default_name(void)
163{
164 if (!(ident_config_given & IDENT_NAME_GIVEN) && !git_default_name.len) {
165 copy_gecos(xgetpwuid_self(&default_name_is_bogus), &git_default_name);
166 strbuf_trim(&git_default_name);
167 }
168 return git_default_name.buf;
169}
170
171const char *ident_default_email(void)
172{

Callers 2

fmt_identFunction · 0.85
default_user_configFunction · 0.85

Calls 3

copy_gecosFunction · 0.85
xgetpwuid_selfFunction · 0.85
strbuf_trimFunction · 0.85

Tested by

no test coverage detected