summaryrefslogtreecommitdiff
path: root/fetch-pack.h
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-03-15 17:31:28 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-15 19:01:08 (GMT)
commit685fbd32916f3e94bc89aa14e8fdce835b06f801 (patch)
tree679bcd54162edebd9c4f73aafa052888e63d7895 /fetch-pack.h
parent3145ea957d2ca6ba7afb087c9ed680e08d705690 (diff)
downloadgit-685fbd32916f3e94bc89aa14e8fdce835b06f801.zip
git-685fbd32916f3e94bc89aa14e8fdce835b06f801.tar.gz
git-685fbd32916f3e94bc89aa14e8fdce835b06f801.tar.bz2
fetch-pack: perform a fetch using v2
When communicating with a v2 server, perform a fetch by requesting the 'fetch' command. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fetch-pack.h')
-rw-r--r--fetch-pack.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/fetch-pack.h b/fetch-pack.h
index b6aeb43..7afca73 100644
--- a/fetch-pack.h
+++ b/fetch-pack.h
@@ -3,6 +3,7 @@
#include "string-list.h"
#include "run-command.h"
+#include "protocol.h"
struct oid_array;
@@ -43,7 +44,8 @@ struct ref *fetch_pack(struct fetch_pack_args *args,
struct ref **sought,
int nr_sought,
struct oid_array *shallow,
- char **pack_lockfile);
+ char **pack_lockfile,
+ enum protocol_version version);
/*
* Print an appropriate error message for each sought ref that wasn't