ewah/bitmap: introduce bitmap_word_alloc()
[git] / send-pack.h
1 #ifndef SEND_PACK_H
2 #define SEND_PACK_H
3
4 #include "string-list.h"
5
6 struct child_process;
7 struct oid_array;
8 struct ref;
9
10 /* Possible values for push_cert field in send_pack_args. */
11 #define SEND_PACK_PUSH_CERT_NEVER 0
12 #define SEND_PACK_PUSH_CERT_IF_ASKED 1
13 #define SEND_PACK_PUSH_CERT_ALWAYS 2
14
15 struct send_pack_args {
16         const char *url;
17         unsigned verbose:1,
18                 quiet:1,
19                 porcelain:1,
20                 progress:1,
21                 send_mirror:1,
22                 force_update:1,
23                 use_thin_pack:1,
24                 use_ofs_delta:1,
25                 dry_run:1,
26                 /* One of the SEND_PACK_PUSH_CERT_* constants. */
27                 push_cert:2,
28                 stateless_rpc:1,
29                 atomic:1;
30         const struct string_list *push_options;
31 };
32
33 struct option;
34 int option_parse_push_signed(const struct option *opt,
35                              const char *arg, int unset);
36
37 int send_pack(struct send_pack_args *args,
38               int fd[], struct child_process *conn,
39               struct ref *remote_refs, struct oid_array *extra_have);
40
41 #endif