show-branch: use skip_prefix to drop magic numbers
[git/debian.git] / send-pack.h
blob67fc40f4ec1a0847fb16535334e07bf196e8028a
1 #ifndef SEND_PACK_H
2 #define SEND_PACK_H
4 #include "string-list.h"
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
11 struct send_pack_args {
12 const char *url;
13 unsigned verbose:1,
14 quiet:1,
15 porcelain:1,
16 progress:1,
17 send_mirror:1,
18 force_update:1,
19 use_thin_pack:1,
20 use_ofs_delta:1,
21 dry_run:1,
22 /* One of the SEND_PACK_PUSH_CERT_* constants. */
23 push_cert:2,
24 stateless_rpc:1,
25 atomic:1;
26 const struct string_list *push_options;
29 struct option;
30 int option_parse_push_signed(const struct option *opt,
31 const char *arg, int unset);
33 int send_pack(struct send_pack_args *args,
34 int fd[], struct child_process *conn,
35 struct ref *remote_refs, struct sha1_array *extra_have);
37 #endif