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

Function fmt_name

ident.c:544–563  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

542}
543
544const char *fmt_name(enum want_ident whose_ident)
545{
546 char *name = NULL;
547 char *email = NULL;
548
549 switch (whose_ident) {
550 case WANT_BLANK_IDENT:
551 break;
552 case WANT_AUTHOR_IDENT:
553 name = getenv("GIT_AUTHOR_NAME");
554 email = getenv("GIT_AUTHOR_EMAIL");
555 break;
556 case WANT_COMMITTER_IDENT:
557 name = getenv("GIT_COMMITTER_NAME");
558 email = getenv("GIT_COMMITTER_EMAIL");
559 break;
560 }
561 return fmt_ident(name, email, whose_ident, NULL,
562 IDENT_STRICT | IDENT_NO_DATE);
563}
564
565const char *git_author_info(int flag)
566{

Callers 2

append_signoffFunction · 0.85
show_logFunction · 0.85

Calls 1

fmt_identFunction · 0.85

Tested by

no test coverage detected