upload-pack, receive-pack: introduce protocol version 1
authorBrandon Williams <bmwill@google.com>
Mon, 16 Oct 2017 17:55:26 +0000 (10:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 17 Oct 2017 01:51:29 +0000 (10:51 +0900)
commitaa9bab29b8b5e70be5c89e375bfba6e0051b3682
tree47730635438fb2037e99b4f9d7f33edbd55a1c33
parentdfe422d04db56e7306a78fcf5b8e93b6b7f60e34
upload-pack, receive-pack: introduce protocol version 1

Teach upload-pack and receive-pack to understand and respond using
protocol version 1, if requested.

Protocol version 1 is simply the original and current protocol (what I'm
calling version 0) with the addition of a single packet line, which
precedes the ref advertisement, indicating the protocol version being
spoken.

Signed-off-by: Brandon Williams <bmwill@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/receive-pack.c
upload-pack.c