connect: refactor git_connect to only get the protocol version once
[gitweb.git] / fetch-pack.h
index a2d46e6e754fef713c42fa34b29588eb14bd0e6a..7afca730560b7fb62ff7111a044a29d7caac0b8c 100644 (file)
@@ -3,8 +3,9 @@
 
 #include "string-list.h"
 #include "run-command.h"
+#include "protocol.h"
 
-struct sha1_array;
+struct oid_array;
 
 struct fetch_pack_args {
        const char *uploadpack;
@@ -42,8 +43,9 @@ struct ref *fetch_pack(struct fetch_pack_args *args,
                       const char *dest,
                       struct ref **sought,
                       int nr_sought,
-                      struct sha1_array *shallow,
-                      char **pack_lockfile);
+                      struct oid_array *shallow,
+                      char **pack_lockfile,
+                      enum protocol_version version);
 
 /*
  * Print an appropriate error message for each sought ref that wasn't