receive-pack: implement advertising and receiving push options
[git/git.git] / send-pack.h
CommitLineData
96249c04
DB
1#ifndef SEND_PACK_H
2#define SEND_PACK_H
3
30261094
DB
4/* Possible values for push_cert field in send_pack_args. */
5#define SEND_PACK_PUSH_CERT_NEVER 0
6#define SEND_PACK_PUSH_CERT_IF_ASKED 1
7#define SEND_PACK_PUSH_CERT_ALWAYS 2
8
96249c04 9struct send_pack_args {
9be89160 10 const char *url;
96249c04 11 unsigned verbose:1,
12070329 12 quiet:1,
77555854 13 porcelain:1,
d7c411b7 14 progress:1,
28b9d6e5 15 send_mirror:1,
96249c04
DB
16 force_update:1,
17 use_thin_pack:1,
b74fce16 18 use_ofs_delta:1,
de1a2fdd 19 dry_run:1,
30261094
DB
20 /* One of the SEND_PACK_PUSH_CERT_* constants. */
21 push_cert:2,
4ff17f10
RS
22 stateless_rpc:1,
23 atomic:1;
96249c04
DB
24};
25
30261094
DB
26struct option;
27int option_parse_push_signed(const struct option *opt,
28 const char *arg, int unset);
29
96249c04 30int send_pack(struct send_pack_args *args,
64fcef2d 31 int fd[], struct child_process *conn,
13eb4626 32 struct ref *remote_refs, struct sha1_array *extra_have);
96249c04
DB
33
34#endif