shallow.c: the 8 steps to select new commits for .git/shallow
[gitweb.git] / remote.h
index 131130a611b55c9f79649037e6dde916b621f578..5d217d5397d58796c427a90f3233d7047880a446 100644 (file)
--- a/remote.h
+++ b/remote.h
@@ -137,13 +137,11 @@ 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,
+                                    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);