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

Function author_date_from_env

sequencer.c:1056–1070  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1054}
1055
1056static const char *author_date_from_env(const struct strvec *env)
1057{
1058 int i;
1059 const char *date;
1060
1061 for (i = 0; i < env->nr; i++)
1062 if (skip_prefix(env->v[i],
1063 "GIT_AUTHOR_DATE=", &date))
1064 return date;
1065 /*
1066 * If GIT_AUTHOR_DATE is missing we should have already errored out when
1067 * reading the script
1068 */
1069 BUG("GIT_AUTHOR_DATE missing from author script");
1070}
1071
1072static const char staged_changes_advice[] =
1073N_("you have staged changes in your working tree\n"

Callers 2

run_git_commitFunction · 0.85
do_mergeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected