Merge branch 'rd/doc-hook-used-in-sample'
[git.git] / send-pack.h
blobe148fcd960994b1724f8d09c4ea4897b1cf069f0
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 const struct string_list *push_options;
33 struct option;
34 int option_parse_push_signed(const struct option *opt,
35 const char *arg, int unset);
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);
41 #endif