fetch-pack.hon commit Merge branch 'jk/check-corrupt-objects-carefully' (a6fed65)
   1#ifndef FETCH_PACK_H
   2#define FETCH_PACK_H
   3
   4#include "string-list.h"
   5
   6struct fetch_pack_args {
   7        const char *uploadpack;
   8        int unpacklimit;
   9        int depth;
  10        unsigned quiet:1,
  11                keep_pack:1,
  12                lock_pack:1,
  13                use_thin_pack:1,
  14                fetch_all:1,
  15                stdin_refs:1,
  16                verbose:1,
  17                no_progress:1,
  18                include_tag:1,
  19                stateless_rpc:1;
  20};
  21
  22/*
  23 * sought represents remote references that should be updated from.
  24 * On return, the names that were found on the remote will have been
  25 * marked as such.
  26 */
  27struct ref *fetch_pack(struct fetch_pack_args *args,
  28                       int fd[], struct child_process *conn,
  29                       const struct ref *ref,
  30                       const char *dest,
  31                       struct ref **sought,
  32                       int nr_sought,
  33                       char **pack_lockfile);
  34
  35#endif