Log ref updates made by fetch.
[git/git.git] / fetch.h
CommitLineData
4250a5e5
DB
1#ifndef PULL_H
2#define PULL_H
3
a81efcba
JH
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 */
4250a5e5
DB
9extern int fetch(unsigned char *sha1);
10
1e8be59d
DB
11/*
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.
15 */
16extern void prefetch(unsigned char *sha1);
17
a81efcba
JH
18/*
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.
22 */
cd541a68
DB
23extern int fetch_ref(char *ref, unsigned char *sha1);
24
a81efcba 25/* If set, the ref filename to write the target value to. */
cd541a68
DB
26extern const char *write_ref;
27
d0740d92
SP
28/* If set additional text will appear in the ref log. */
29extern const char *write_ref_log_details;
30
a81efcba 31/* If set, the hash that the current value of write_ref must be. */
cd541a68
DB
32extern const unsigned char *current_ref;
33
a81efcba 34/* Set to fetch the target tree. */
4250a5e5
DB
35extern int get_tree;
36
a81efcba 37/* Set to fetch the commit history. */
4250a5e5
DB
38extern int get_history;
39
a81efcba 40/* Set to fetch the trees in the commit history. */
4250a5e5
DB
41extern int get_all;
42
e78d9772
JH
43/* Set to be verbose */
44extern int get_verbosely;
45
820eca68
DB
46/* Set to check on all reachable objects. */
47extern int get_recover;
48
e78d9772
JH
49/* Report what we got under get_verbosely */
50extern void pull_say(const char *, const char *);
51
4250a5e5
DB
52extern int pull(char *target);
53
54#endif /* PULL_H */