]>
Commit | Line | Data |
---|---|---|
96249c04 DB |
1 | #ifndef SEND_PACK_H |
2 | #define SEND_PACK_H | |
3 | ||
f6a4e61f SB |
4 | #include "string-list.h" |
5 | ||
30261094 DB |
6 | /* Possible values for push_cert field in send_pack_args. */ |
7 | #define SEND_PACK_PUSH_CERT_NEVER 0 | |
8 | #define SEND_PACK_PUSH_CERT_IF_ASKED 1 | |
9 | #define SEND_PACK_PUSH_CERT_ALWAYS 2 | |
10 | ||
96249c04 | 11 | struct send_pack_args { |
9be89160 | 12 | const char *url; |
96249c04 | 13 | unsigned verbose:1, |
12070329 | 14 | quiet:1, |
77555854 | 15 | porcelain:1, |
d7c411b7 | 16 | progress:1, |
28b9d6e5 | 17 | send_mirror:1, |
96249c04 DB |
18 | force_update:1, |
19 | use_thin_pack:1, | |
b74fce16 | 20 | use_ofs_delta:1, |
de1a2fdd | 21 | dry_run:1, |
30261094 DB |
22 | /* One of the SEND_PACK_PUSH_CERT_* constants. */ |
23 | push_cert:2, | |
4ff17f10 RS |
24 | stateless_rpc:1, |
25 | atomic:1; | |
f6a4e61f | 26 | const struct string_list *push_options; |
96249c04 DB |
27 | }; |
28 | ||
30261094 DB |
29 | struct option; |
30 | int option_parse_push_signed(const struct option *opt, | |
31 | const char *arg, int unset); | |
32 | ||
96249c04 | 33 | int send_pack(struct send_pack_args *args, |
64fcef2d | 34 | int fd[], struct child_process *conn, |
910650d2 | 35 | struct ref *remote_refs, struct oid_array *extra_have); |
96249c04 DB |
36 | |
37 | #endif |