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

Function git_author_info

ident.c:565–576  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

563}
564
565const char *git_author_info(int flag)
566{
567 if (getenv("GIT_AUTHOR_NAME"))
568 author_ident_explicitly_given |= IDENT_NAME_GIVEN;
569 if (getenv("GIT_AUTHOR_EMAIL"))
570 author_ident_explicitly_given |= IDENT_MAIL_GIVEN;
571 return fmt_ident(getenv("GIT_AUTHOR_NAME"),
572 getenv("GIT_AUTHOR_EMAIL"),
573 WANT_AUTHOR_IDENT,
574 getenv("GIT_AUTHOR_DATE"),
575 flag);
576}
577
578const char *git_committer_info(int flag)
579{

Callers 4

credit_peopleFunction · 0.85
do_mergeFunction · 0.85
write_commit_treeFunction · 0.85
authorFunction · 0.85

Calls 1

fmt_identFunction · 0.85

Tested by

no test coverage detected