2007-10-30 03:03:39 +01:00
|
|
|
#ifndef SEND_PACK_H
|
|
|
|
#define SEND_PACK_H
|
|
|
|
|
2016-07-14 23:49:47 +02:00
|
|
|
#include "string-list.h"
|
|
|
|
|
2018-08-15 19:54:05 +02:00
|
|
|
struct child_process;
|
|
|
|
struct oid_array;
|
|
|
|
struct ref;
|
|
|
|
|
2015-08-19 17:26:46 +02: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 03:03:39 +01:00
|
|
|
struct send_pack_args {
|
2014-08-23 03:15:24 +02:00
|
|
|
const char *url;
|
2007-10-30 03:03:39 +01:00
|
|
|
unsigned verbose:1,
|
2009-08-05 22:22:36 +02:00
|
|
|
quiet:1,
|
2010-02-27 05:52:15 +01:00
|
|
|
porcelain:1,
|
2010-10-16 20:37:03 +02:00
|
|
|
progress:1,
|
2007-11-10 00:32:10 +01:00
|
|
|
send_mirror:1,
|
2007-10-30 03:03:39 +01:00
|
|
|
force_update:1,
|
|
|
|
use_thin_pack:1,
|
2009-05-01 22:56:47 +02:00
|
|
|
use_ofs_delta:1,
|
2009-10-31 01:47:41 +01:00
|
|
|
dry_run:1,
|
2015-08-19 17:26:46 +02:00
|
|
|
/* One of the SEND_PACK_PUSH_CERT_* constants. */
|
|
|
|
push_cert:2,
|
2015-01-08 04:23:22 +01:00
|
|
|
stateless_rpc:1,
|
2022-06-17 21:06:19 +02:00
|
|
|
atomic:1,
|
|
|
|
disable_bitmaps:1;
|
2016-07-14 23:49:47 +02:00
|
|
|
const struct string_list *push_options;
|
2007-10-30 03:03:39 +01:00
|
|
|
};
|
|
|
|
|
2015-08-19 17:26:46 +02:00
|
|
|
struct option;
|
|
|
|
int option_parse_push_signed(const struct option *opt,
|
|
|
|
const char *arg, int unset);
|
|
|
|
|
2007-10-30 03:03:39 +01:00
|
|
|
int send_pack(struct send_pack_args *args,
|
2009-03-09 02:06:07 +01:00
|
|
|
int fd[], struct child_process *conn,
|
2017-03-31 03:40:00 +02:00
|
|
|
struct ref *remote_refs, struct oid_array *extra_have);
|
2007-10-30 03:03:39 +01:00
|
|
|
|
|
|
|
#endif
|