summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2013-02-20 20:06:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-02-24 08:17:38 (GMT)
commit85edf4f58b5368e2f2acc4bce0d10e1ca9d6c879 (patch)
tree8aebba6d7b9df301e6e9144eaf98ebda021424be /cache.h
parent4981fe750b1fc58bfdf5b9ca9843f4f505b9bb4d (diff)
downloadgit-85edf4f58b5368e2f2acc4bce0d10e1ca9d6c879.zip
git-85edf4f58b5368e2f2acc4bce0d10e1ca9d6c879.tar.gz
git-85edf4f58b5368e2f2acc4bce0d10e1ca9d6c879.tar.bz2
teach get_remote_heads to read from a memory buffer
Now that we can read packet data from memory as easily as a descriptor, get_remote_heads can take either one as a source. This will allow further refactoring in remote-curl. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/cache.h b/cache.h
index e493563..db646a2 100644
--- a/cache.h
+++ b/cache.h
@@ -1049,7 +1049,9 @@ struct extra_have_objects {
int nr, alloc;
unsigned char (*array)[20];
};
-extern struct ref **get_remote_heads(int in, struct ref **list, unsigned int flags, struct extra_have_objects *);
+extern struct ref **get_remote_heads(int in, char *src_buf, size_t src_len,
+ struct ref **list, unsigned int flags,
+ struct extra_have_objects *);
extern int server_supports(const char *feature);
extern int parse_feature_request(const char *features, const char *feature);
extern const char *server_feature_value(const char *feature, int *len_ret);