summaryrefslogtreecommitdiff
path: root/remote-curl.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-03-14 18:31:47 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-03-14 21:15:07 (GMT)
commit8f6982b4e16c60bba713a3b6592b2ff5c7476974 (patch)
tree2cc541fc7eac51ebf0a8aee415851f56d8eae64e /remote-curl.c
parent432e95651031025e421ae2f521f7c0d9f60c527c (diff)
downloadgit-8f6982b4e16c60bba713a3b6592b2ff5c7476974.zip
git-8f6982b4e16c60bba713a3b6592b2ff5c7476974.tar.gz
git-8f6982b4e16c60bba713a3b6592b2ff5c7476974.tar.bz2
protocol: introduce enum protocol_version value protocol_v2
Introduce protocol_v2, a new value for 'enum protocol_version'. Subsequent patches will fill in the implementation of protocol_v2. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'remote-curl.c')
-rw-r--r--remote-curl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/remote-curl.c b/remote-curl.c
index 9f6d076..dae8a4a 100644
--- a/remote-curl.c
+++ b/remote-curl.c
@@ -185,6 +185,9 @@ static struct ref *parse_git_refs(struct discovery *heads, int for_push)
PACKET_READ_GENTLE_ON_EOF);
switch (discover_version(&reader)) {
+ case protocol_v2:
+ die("support for protocol v2 not implemented yet");
+ break;
case protocol_v1:
case protocol_v0:
get_remote_heads(&reader, &list, for_push ? REF_NORMAL : 0,