summaryrefslogtreecommitdiff
path: root/remote.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2013-12-05 20:02:33 +0700
committerJunio C Hamano <gitster@pobox.com>2013-12-10 16:14:16 -0800
commitb06dcd7d6829c86afda6b311cadf009ee4b4dd59 (patch)
tree6db0d883cc38fb1ed50038df1e880f6c7616d0f2 /remote.h
parentad491366de6c883cd04539cb86db31049201dfbd (diff)
downloadgit-b06dcd7d6829c86afda6b311cadf009ee4b4dd59.tar.gz
connect.c: teach get_remote_heads to parse "shallow" lines
No callers pass a non-empty pointer as shallow_points at this stage. As a result, all clients still refuse to talk to shallow repository on the other end. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote.h')
-rw-r--r--remote.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/remote.h b/remote.h
index 984519bc62..5d217d5397 100644
--- a/remote.h
+++ b/remote.h
@@ -140,7 +140,8 @@ void free_refs(struct ref *ref);
struct sha1_array;
extern struct ref **get_remote_heads(int in, char *src_buf, size_t src_len,
struct ref **list, unsigned int flags,
- struct sha1_array *extra_have);
+ struct sha1_array *extra_have,
+ struct sha1_array *shallow);
int resolve_remote_symref(struct ref *ref, struct ref *list);
int ref_newer(const unsigned char *new_sha1, const unsigned char *old_sha1);