]> git.ipfire.org Git - thirdparty/git.git/blame - send-pack.h
path.c: mark 'logs/HEAD' in 'common_list' as file
[thirdparty/git.git] / send-pack.h
CommitLineData
96249c04
DB
1#ifndef SEND_PACK_H
2#define SEND_PACK_H
3
f6a4e61f
SB
4#include "string-list.h"
5
ef3ca954
EN
6struct child_process;
7struct oid_array;
8struct ref;
9
30261094
DB
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
14
96249c04 15struct send_pack_args {
9be89160 16 const char *url;
96249c04 17 unsigned verbose:1,
12070329 18 quiet:1,
77555854 19 porcelain:1,
d7c411b7 20 progress:1,
28b9d6e5 21 send_mirror:1,
96249c04
DB
22 force_update:1,
23 use_thin_pack:1,
b74fce16 24 use_ofs_delta:1,
de1a2fdd 25 dry_run:1,
30261094
DB
26 /* One of the SEND_PACK_PUSH_CERT_* constants. */
27 push_cert:2,
4ff17f10
RS
28 stateless_rpc:1,
29 atomic:1;
f6a4e61f 30 const struct string_list *push_options;
96249c04
DB
31};
32
30261094
DB
33struct option;
34int option_parse_push_signed(const struct option *opt,
35 const char *arg, int unset);
36
96249c04 37int send_pack(struct send_pack_args *args,
64fcef2d 38 int fd[], struct child_process *conn,
910650d2 39 struct ref *remote_refs, struct oid_array *extra_have);
96249c04
DB
40
41#endif