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:

committed by
Junio C Hamano

parent
c6b69bdbc1
commit
4211e4d10c
2
fetch.h
2
fetch.h
@ -42,7 +42,7 @@ extern void pull_say(const char *, const char *);
|
||||
|
||||
/* If write_ref is set, the ref filename to write the target value to. */
|
||||
/* If write_ref_log_details is set, additional text will appear in the ref log. */
|
||||
extern int pull(char *target, const char *write_ref,
|
||||
extern int pull(int targets, char **target, const char **write_ref,
|
||||
const char *write_ref_log_details);
|
||||
|
||||
#endif /* PULL_H */
|
||||
|
Reference in New Issue
Block a user