summaryrefslogtreecommitdiff
path: root/fetch-pack.h
diff options
context:
space:
mode:
Diffstat (limited to 'fetch-pack.h')
-rw-r--r--fetch-pack.h44
1 files changed, 44 insertions, 0 deletions
diff --git a/fetch-pack.h b/fetch-pack.h
new file mode 100644
index 0000000000..bb7fd76e59
--- /dev/null
+++ b/fetch-pack.h
@@ -0,0 +1,44 @@
+#ifndef FETCH_PACK_H
+#define FETCH_PACK_H
+
+#include "string-list.h"
+#include "run-command.h"
+
+struct sha1_array;
+
+struct fetch_pack_args {
+ const char *uploadpack;
+ int unpacklimit;
+ int depth;
+ unsigned quiet:1;
+ unsigned keep_pack:1;
+ unsigned lock_pack:1;
+ unsigned use_thin_pack:1;
+ unsigned fetch_all:1;
+ unsigned stdin_refs:1;
+ unsigned diag_url:1;
+ unsigned verbose:1;
+ unsigned no_progress:1;
+ unsigned include_tag:1;
+ unsigned stateless_rpc:1;
+ unsigned check_self_contained_and_connected:1;
+ unsigned self_contained_and_connected:1;
+ unsigned cloning:1;
+ unsigned update_shallow:1;
+};
+
+/*
+ * sought represents remote references that should be updated from.
+ * On return, the names that were found on the remote will have been
+ * marked as such.
+ */
+struct ref *fetch_pack(struct fetch_pack_args *args,
+ int fd[], struct child_process *conn,
+ const struct ref *ref,
+ const char *dest,
+ struct ref **sought,
+ int nr_sought,
+ struct sha1_array *shallow,
+ char **pack_lockfile);
+
+#endif