Make pull() support fetching multiple targets at once

pull() now takes an array of arguments instead of just one of each kind.
Currently, no users use the new capability, but that'll change.

Signed-off-by: Petr Baudis <pasky@suse.cz>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Petr Baudis
2006-07-27 23:56:17 +02:00
committed by Junio C Hamano
parent c6b69bdbc1
commit 4211e4d10c
5 changed files with 50 additions and 38 deletions

View File

@ -167,7 +167,7 @@ int main(int argc, char **argv)
if (get_version())
return 1;
if (pull(commit_id, write_ref, url))
if (pull(1, &commit_id, &write_ref, url))
return 1;
return 0;