summaryrefslogtreecommitdiff
path: root/fetch-pack.h
diff options
context:
space:
mode:
authorDaniel Barkalow <barkalow@iabervon.org>2007-09-10 23:03:00 -0400
committerJunio C Hamano <gitster@pobox.com>2007-09-19 03:22:30 -0700
commit2d4177c01c238071777db5b1fbd8a14efb62ce02 (patch)
treeed1207ac261a8cb2a55322b40bc0403cf2bc7013 /fetch-pack.h
parentcf818348f1ab577d2ecb5d11a00a1d4122435ece (diff)
downloadgit-2d4177c01c238071777db5b1fbd8a14efb62ce02.tar.gz
Make fetch-pack a builtin with an internal API
Signed-off-by: Daniel Barkalow <barkalow@iabervon.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fetch-pack.h')
-rw-r--r--fetch-pack.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/fetch-pack.h b/fetch-pack.h
new file mode 100644
index 0000000000..e06bf5b5c4
--- /dev/null
+++ b/fetch-pack.h
@@ -0,0 +1,21 @@
+#ifndef FETCH_PACK_H
+#define FETCH_PACK_H
+
+struct fetch_pack_args
+{
+ const char *uploadpack;
+ int quiet;
+ int keep_pack;
+ int unpacklimit;
+ int use_thin_pack;
+ int fetch_all;
+ int verbose;
+ int depth;
+ int no_progress;
+};
+
+void setup_fetch_pack(struct fetch_pack_args *args);
+
+struct ref *fetch_pack(const char *dest, int nr_heads, char **heads);
+
+#endif