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