pull.hon commit git-pack-objects: do the delta search in reverse size order (521a4f4)
   1#ifndef PULL_H
   2#define PULL_H
   3
   4/*
   5 * Fetch object given SHA1 from the remote, and store it locally under
   6 * GIT_OBJECT_DIRECTORY.  Return 0 on success, -1 on failure.  To be
   7 * provided by the particular implementation.
   8 */
   9extern int fetch(unsigned char *sha1);
  10
  11/*
  12 * Fetch ref (relative to $GIT_DIR/refs) from the remote, and store
  13 * the 20-byte SHA1 in sha1.  Return 0 on success, -1 on failure.  To
  14 * be provided by the particular implementation.
  15 */
  16extern int fetch_ref(char *ref, unsigned char *sha1);
  17
  18/* If set, the ref filename to write the target value to. */
  19extern const char *write_ref;
  20
  21/* If set, the hash that the current value of write_ref must be. */
  22extern const unsigned char *current_ref;
  23
  24/* Set to fetch the target tree. */
  25extern int get_tree;
  26
  27/* Set to fetch the commit history. */
  28extern int get_history;
  29
  30/* Set to fetch the trees in the commit history. */
  31extern int get_all;
  32
  33/* Set to zero to skip the check for delta object base;
  34 * set to two to check delta dependency even for objects we already have.
  35 */
  36extern int get_delta;
  37
  38/* Set to be verbose */
  39extern int get_verbosely;
  40
  41/* Report what we got under get_verbosely */
  42extern void pull_say(const char *, const char *);
  43
  44extern int pull(char *target);
  45
  46#endif /* PULL_H */