[PATCH] Add footnote about Thunderbird about trimming trailing WS.
[git/jrn.git] / pull.h
blobe7710e89e710979283f82fe3e67ca1296e70b556
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 the specified object and store it locally; fetch() will be
13 * called later to determine success. To be provided by the particular
14 * implementation.
16 extern void prefetch(unsigned char *sha1);
19 * Fetch ref (relative to $GIT_DIR/refs) from the remote, and store
20 * the 20-byte SHA1 in sha1. Return 0 on success, -1 on failure. To
21 * be provided by the particular implementation.
23 extern int fetch_ref(char *ref, unsigned char *sha1);
25 /* If set, the ref filename to write the target value to. */
26 extern const char *write_ref;
28 /* If set, the hash that the current value of write_ref must be. */
29 extern const unsigned char *current_ref;
31 /* Set to fetch the target tree. */
32 extern int get_tree;
34 /* Set to fetch the commit history. */
35 extern int get_history;
37 /* Set to fetch the trees in the commit history. */
38 extern int get_all;
40 /* Set to be verbose */
41 extern int get_verbosely;
43 /* Report what we got under get_verbosely */
44 extern void pull_say(const char *, const char *);
46 extern int pull(char *target);
48 #endif /* PULL_H */