9 int fetch(unsigned char *sha1)
12 write(fd_out, sha1, 20);
13 ret = write_sha1_from_fd(sha1, fd_in);
15 pull_say("got %s\n", sha1_to_hex(sha1));
19 int main(int argc, char **argv)
25 while (arg < argc && argv[arg][0] == '-') {
26 if (argv[arg][1] == 't') {
28 } else if (argv[arg][1] == 'c') {
30 } else if (argv[arg][1] == 'd') {
32 } else if (argv[arg][1] == 'a') {
36 } else if (argv[arg][1] == 'v') {
42 usage("git-rpull [-c] [-t] [-a] [-v] [-d] commit-id url");
45 commit_id = argv[arg];
48 if (setup_connection(&fd_in, &fd_out, "git-rpush", url, arg, argv + 1))