diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-16 13:55:50 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-16 13:55:50 -0700 |
commit | d1c133f5d48a45ad8ba29c4cb2c2a824f4f600fa (patch) | |
tree | f0d17f0d1dd6c7c194ecb32a27f36aea1546ce1f /cache.h | |
parent | git-send-pack: add "--all" option to send all refs to the other side (diff) | |
download | tgif-d1c133f5d48a45ad8ba29c4cb2c2a824f4f600fa.tar.xz |
Merge three separate "fetch refs" functions
It really just boils down to one "get_remote_heads()" function, and a
common "struct ref" structure definition.
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -285,10 +285,18 @@ struct pack_entry { struct packed_git *p; }; +struct ref { + struct ref *next; + unsigned char old_sha1[20]; + unsigned char new_sha1[20]; + char name[0]; +}; + extern int git_connect(int fd[2], char *url, const char *prog); extern int finish_connect(pid_t pid); extern int path_match(const char *path, int nr, char **match); extern int get_ack(int fd, unsigned char *result_sha1); +extern struct ref **get_remote_heads(int in, struct ref **list, int nr_match, char **match); extern void prepare_packed_git(void); extern int use_packed_git(struct packed_git *); |