path: root/fetch.h
diff options
authorPetr Baudis <>2006-07-27 21:56:19 (GMT)
committerJunio C Hamano <>2006-07-28 02:33:48 (GMT)
commit8e87ca661513d9f4b737295b234e93767cd2ee0c (patch)
treec757f0a8288533617c3ef5d1f31570fbd7e561c0 /fetch.h
parent4211e4d10cd98b1aeed97bdb6cdebb9411956bb5 (diff)
Teach git-local-fetch the --stdin switch
This makes it possible to fetch many commits (refs) at once, greatly speeding up cg-clone. Signed-off-by: Petr Baudis <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'fetch.h')
1 files changed, 6 insertions, 0 deletions
diff --git a/fetch.h b/fetch.h
index 75e48af..be48c6f 100644
--- a/fetch.h
+++ b/fetch.h
@@ -40,6 +40,12 @@ extern int get_recover;
/* Report what we got under get_verbosely */
extern void pull_say(const char *, const char *);
+/* Load pull targets from stdin */
+extern int pull_targets_stdin(char ***target, const char ***write_ref);
+/* Free up loaded targets */
+extern void pull_targets_free(int targets, char **target, const char **write_ref);
/* 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(int targets, char **target, const char **write_ref,