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