summaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2018-03-14 11:31:47 -0700
committerJunio C Hamano <gitster@pobox.com>2018-03-14 14:15:07 -0700
commit8f6982b4e16c60bba713a3b6592b2ff5c7476974 (patch)
tree2cc541fc7eac51ebf0a8aee415851f56d8eae64e /connect.c
parent432e95651031025e421ae2f521f7c0d9f60c527c (diff)
downloadgit-8f6982b4e16c60bba713a3b6592b2ff5c7476974.tar.gz
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 'connect.c')
-rw-r--r--connect.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/connect.c b/connect.c
index 0b111e62d7..4b89b984c4 100644
--- a/connect.c
+++ b/connect.c
@@ -83,6 +83,9 @@ enum protocol_version discover_version(struct packet_reader *reader)
}
switch (version) {
+ case protocol_v2:
+ die("support for protocol v2 not implemented yet");
+ break;
case protocol_v1:
/* Read the peeked version line */
packet_reader_read(reader);