2007-10-30 10:03:39 +08:00
|
|
|
#ifndef SEND_PACK_H
|
|
|
|
#define SEND_PACK_H
|
|
|
|
|
2015-08-19 23:26:46 +08:00
|
|
|
/* Possible values for push_cert field in send_pack_args. */
|
|
|
|
#define SEND_PACK_PUSH_CERT_NEVER 0
|
|
|
|
#define SEND_PACK_PUSH_CERT_IF_ASKED 1
|
|
|
|
#define SEND_PACK_PUSH_CERT_ALWAYS 2
|
|
|
|
|
2007-10-30 10:03:39 +08:00
|
|
|
struct send_pack_args {
|
2014-08-23 09:15:24 +08:00
|
|
|
const char *url;
|
2007-10-30 10:03:39 +08:00
|
|
|
unsigned verbose:1,
|
2009-08-06 04:22:36 +08:00
|
|
|
quiet:1,
|
2010-02-27 12:52:15 +08:00
|
|
|
porcelain:1,
|
2010-10-17 02:37:03 +08:00
|
|
|
progress:1,
|
2007-11-10 07:32:10 +08:00
|
|
|
send_mirror:1,
|
2007-10-30 10:03:39 +08:00
|
|
|
force_update:1,
|
|
|
|
use_thin_pack:1,
|
2009-05-02 04:56:47 +08:00
|
|
|
use_ofs_delta:1,
|
2009-10-31 08:47:41 +08:00
|
|
|
dry_run:1,
|
2015-08-19 23:26:46 +08:00
|
|
|
/* One of the SEND_PACK_PUSH_CERT_* constants. */
|
|
|
|
push_cert:2,
|
2015-01-08 11:23:22 +08:00
|
|
|
stateless_rpc:1,
|
|
|
|
atomic:1;
|
2007-10-30 10:03:39 +08:00
|
|
|
};
|
|
|
|
|
2015-08-19 23:26:46 +08:00
|
|
|
struct option;
|
|
|
|
int option_parse_push_signed(const struct option *opt,
|
|
|
|
const char *arg, int unset);
|
|
|
|
|
2007-10-30 10:03:39 +08:00
|
|
|
int send_pack(struct send_pack_args *args,
|
2009-03-09 09:06:07 +08:00
|
|
|
int fd[], struct child_process *conn,
|
2013-12-05 21:02:29 +08:00
|
|
|
struct ref *remote_refs, struct sha1_array *extra_have);
|
2007-10-30 10:03:39 +08:00
|
|
|
|
|
|
|
#endif
|