]>
git.ipfire.org Git - thirdparty/git.git/blob - rpull.c
15 int fetch(unsigned char *sha1
)
17 write(fd_out
, sha1
, 20);
18 return write_sha1_from_fd(sha1
, fd_in
);
21 int main(int argc
, char **argv
)
27 while (arg
< argc
&& argv
[arg
][0] == '-') {
28 if (argv
[arg
][1] == 't') {
30 } else if (argv
[arg
][1] == 'c') {
32 } else if (argv
[arg
][1] == 'a') {
40 usage("rpull [-c] [-t] [-a] commit-id url");
43 commit_id
= argv
[arg
];
46 if (setup_connection(&fd_in
, &fd_out
, "rpush", url
, arg
, argv
+ 1))