Fix remote CVS import.
[alt-git.git] / pull.h
blobe173ae3337c4465da87d849f4e5c9da203fdf01d
1 #ifndef PULL_H
2 #define PULL_H
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 */
9 extern int fetch(unsigned char *sha1);
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.
16 extern int fetch_ref(char *ref, unsigned char *sha1);
18 /* If set, the ref filename to write the target value to. */
19 extern const char *write_ref;
21 /* If set, the hash that the current value of write_ref must be. */
22 extern const unsigned char *current_ref;
24 /* Set to fetch the target tree. */
25 extern int get_tree;
27 /* Set to fetch the commit history. */
28 extern int get_history;
30 /* Set to fetch the trees in the commit history. */
31 extern int get_all;
33 /* Set to be verbose */
34 extern int get_verbosely;
36 /* Report what we got under get_verbosely */
37 extern void pull_say(const char *, const char *);
39 extern int pull(char *target);
41 #endif /* PULL_H */