upload-pack: split check_unreachable() in two, prep for get_reachable_list()
[git/raj.git] / fetch-pack.h
blob144301fbcd2f43263927856041d3dd6e4d7d3e95
1 #ifndef FETCH_PACK_H
2 #define FETCH_PACK_H
4 #include "string-list.h"
5 #include "run-command.h"
7 struct sha1_array;
9 struct fetch_pack_args {
10 const char *uploadpack;
11 int unpacklimit;
12 int depth;
13 const char *deepen_since;
14 const struct string_list *deepen_not;
15 unsigned quiet:1;
16 unsigned keep_pack:1;
17 unsigned lock_pack:1;
18 unsigned use_thin_pack:1;
19 unsigned fetch_all:1;
20 unsigned stdin_refs:1;
21 unsigned diag_url:1;
22 unsigned verbose:1;
23 unsigned no_progress:1;
24 unsigned include_tag:1;
25 unsigned stateless_rpc:1;
26 unsigned check_self_contained_and_connected:1;
27 unsigned self_contained_and_connected:1;
28 unsigned cloning:1;
29 unsigned update_shallow:1;
30 unsigned deepen:1;
34 * sought represents remote references that should be updated from.
35 * On return, the names that were found on the remote will have been
36 * marked as such.
38 struct ref *fetch_pack(struct fetch_pack_args *args,
39 int fd[], struct child_process *conn,
40 const struct ref *ref,
41 const char *dest,
42 struct ref **sought,
43 int nr_sought,
44 struct sha1_array *shallow,
45 char **pack_lockfile);
47 #endif