diff options
author | Brandon Williams <bmwill@google.com> | 2018-03-15 10:31:28 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-03-15 12:01:08 -0700 |
commit | 685fbd32916f3e94bc89aa14e8fdce835b06f801 (patch) | |
tree | 679bcd54162edebd9c4f73aafa052888e63d7895 /fetch-pack.h | |
parent | upload-pack: introduce fetch server command (diff) | |
download | tgif-685fbd32916f3e94bc89aa14e8fdce835b06f801.tar.xz |
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.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fetch-pack.h b/fetch-pack.h index b6aeb43a8e..7afca73056 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 |