send-pack.hon commit enter_repo: allow .git files in strict mode (1f5fbe1)
   1#ifndef SEND_PACK_H
   2#define SEND_PACK_H
   3
   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
   9struct send_pack_args {
  10        const char *url;
  11        unsigned verbose:1,
  12                quiet:1,
  13                porcelain:1,
  14                progress:1,
  15                send_mirror:1,
  16                force_update:1,
  17                use_thin_pack:1,
  18                use_ofs_delta:1,
  19                dry_run:1,
  20                /* One of the SEND_PACK_PUSH_CERT_* constants. */
  21                push_cert:2,
  22                stateless_rpc:1,
  23                atomic:1;
  24};
  25
  26struct option;
  27int option_parse_push_signed(const struct option *opt,
  28                             const char *arg, int unset);
  29
  30int send_pack(struct send_pack_args *args,
  31              int fd[], struct child_process *conn,
  32              struct ref *remote_refs, struct sha1_array *extra_have);
  33
  34#endif