summaryrefslogtreecommitdiff
path: root/protocol.c
AgeCommit message (Collapse)AuthorFilesLines
2017-10-17protocol: introduce protocol extension mechanismsLibravatar Brandon Williams1-0/+79
Create protocol.{c,h} and provide functions which future servers and clients can use to determine which protocol to use or is being used. Also introduce the 'GIT_PROTOCOL' environment variable which will be used to communicate a colon separated list of keys with optional values to a server. Unknown keys and values must be tolerated. This mechanism is used to communicate which version of the wire protocol a client would like to use with a server. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>