trailer --unfold help: prefer "reformat" over "join"
[alt-git.git] / send-pack.h
blob7edb80596c7b0edf607ea5cd0f01315106d02b73
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;
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
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 disable_bitmaps:1;
31 const struct string_list *push_options;
34 struct option;
35 int option_parse_push_signed(const struct option *opt,
36 const char *arg, int unset);
38 int send_pack(struct send_pack_args *args,
39 int fd[], struct child_process *conn,
40 struct ref *remote_refs, struct oid_array *extra_have);
42 #endif