#include "git-compat-util.h" #include "quote.h" #include "exec-cmd.h" #include "strbuf.h" #include "run-command.h" #include "alias.h" #define COMMAND_DIR … #define HELP_COMMAND … #define NOLOGIN_COMMAND … static int do_generic_cmd(const char *me, char *arg) { … } static int is_valid_cmd_name(const char *cmd) { … } static char *make_cmd(const char *prog) { … } static void cd_to_homedir(void) { … } #define MAX_INTERACTIVE_COMMAND … static void run_shell(void) { … } static struct commands { … } cmd_list[] = …; int cmd_main(int argc, const char **argv) { … }