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:29 +0700
committerJunio C Hamano <gitster@pobox.com>2013-12-10 16:14:15 -0800
commit13eb4626c43b3116bb431671d593565eadc36852 (patch)
tree01f7f161d5eedaaf3498eef791cbefbcf6234f68 /remote.h
parent75f8cbab2a2ddc50728ade82baad223ed54bb040 (diff)
downloadgit-13eb4626c43b3116bb431671d593565eadc36852.tar.gz
remote.h: replace struct extra_have_objects with struct sha1_array
The latter can do everything the former can and is used in many more places. 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.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/remote.h b/remote.h
index 131130a611..984519bc62 100644
--- a/remote.h
+++ b/remote.h
@@ -137,13 +137,10 @@ int check_ref_type(const struct ref *ref, int flags);
*/
void free_refs(struct ref *ref);
-struct extra_have_objects {
- int nr, alloc;
- unsigned char (*array)[20];
-};
+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 extra_have_objects *);
+ struct sha1_array *extra_have);
int resolve_remote_symref(struct ref *ref, struct ref *list);
int ref_newer(const unsigned char *new_sha1, const unsigned char *old_sha1);