rebase -i: support --stat
[git] / test-subprocess.c
1 #include "cache.h"
2 #include "run-command.h"
3
4 int main(int argc, char **argv)
5 {
6         const char *prefix;
7         struct child_process cp;
8         int nogit = 0;
9
10         prefix = setup_git_directory_gently(&nogit);
11         if (nogit)
12                 die("No git repo found");
13         if (!strcmp(argv[1], "--setup-work-tree")) {
14                 setup_work_tree();
15                 argv++;
16         }
17         memset(&cp, 0, sizeof(cp));
18         cp.git_cmd = 1;
19         cp.argv = (const char **)argv+1;
20         return run_command(&cp);
21 }