Merge branch 'sb/submodule-parallel-fetch'
[alt-git.git] / send-pack.h
blob57f222abccd7e77dad7e9a107e44971d16db79c2
1 #ifndef SEND_PACK_H
2 #define SEND_PACK_H
4 /* Possible values for push_cert field in send_pack_args. */
5 #define SEND_PACK_PUSH_CERT_NEVER 0
6 #define SEND_PACK_PUSH_CERT_IF_ASKED 1
7 #define SEND_PACK_PUSH_CERT_ALWAYS 2
9 struct send_pack_args {
10 const char *url;
11 unsigned verbose:1,
12 quiet:1,
13 porcelain:1,
14 progress:1,
15 send_mirror:1,
16 force_update:1,
17 use_thin_pack:1,
18 use_ofs_delta:1,
19 dry_run:1,
20 /* One of the SEND_PACK_PUSH_CERT_* constants. */
21 push_cert:2,
22 stateless_rpc:1,
23 atomic:1;
26 struct option;
27 int option_parse_push_signed(const struct option *opt,
28 const char *arg, int unset);
30 int send_pack(struct send_pack_args *args,
31 int fd[], struct child_process *conn,
32 struct ref *remote_refs, struct sha1_array *extra_have);
34 #endif