summaryrefslogtreecommitdiff
path: root/fetch.h
diff options
context:
space:
mode:
authorPetr Baudis <pasky@suse.cz>2006-07-27 21:56:19 (GMT)
committerJunio C Hamano <junkio@cox.net>2006-07-28 02:33:48 (GMT)
commit8e87ca661513d9f4b737295b234e93767cd2ee0c (patch)
treec757f0a8288533617c3ef5d1f31570fbd7e561c0 /fetch.h
parent4211e4d10cd98b1aeed97bdb6cdebb9411956bb5 (diff)
downloadgit-8e87ca661513d9f4b737295b234e93767cd2ee0c.zip
git-8e87ca661513d9f4b737295b234e93767cd2ee0c.tar.gz
git-8e87ca661513d9f4b737295b234e93767cd2ee0c.tar.bz2
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 <pasky@suse.cz> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'fetch.h')
-rw-r--r--fetch.h6
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,