pack-objects: add list-objects filtering
[git] / send-pack.h
1 #ifndef SEND_PACK_H
2 #define SEND_PACK_H
3
4 #include "string-list.h"
5
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
10
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;
27 };
28
29 struct option;
30 int option_parse_push_signed(const struct option *opt,
31                              const char *arg, int unset);
32
33 int send_pack(struct send_pack_args *args,
34               int fd[], struct child_process *conn,
35               struct ref *remote_refs, struct oid_array *extra_have);
36
37 #endif