4 * Based on git-am.sh by Junio C Hamano.
10 int cmd_am(int argc
, const char **argv
, const char *prefix
)
14 * NEEDSWORK: Once all the features of git-am.sh have been
15 * re-implemented in builtin/am.c, this preamble can be removed.
17 if (!getenv("_GIT_USE_BUILTIN_AM")) {
18 const char *path
= mkpath("%s/git-am", git_exec_path());
20 if (sane_execvp(path
, (char **)argv
) < 0)
21 die_errno("could not exec %s", path
);
23 prefix
= setup_git_directory();
24 trace_repo_setup(prefix
);