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>
This commit is contained in:
Brandon Williams
2018-03-14 11:31:47 -07:00
committed by Junio C Hamano
parent 432e956510
commit 8f6982b4e1
9 changed files with 36 additions and 0 deletions

View File

@ -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);