| 1054 | } |
| 1055 | |
| 1056 | static 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 | |
| 1072 | static const char staged_changes_advice[] = |
| 1073 | N_("you have staged changes in your working tree\n" |
no outgoing calls
no test coverage detected