include agent identifier in capability string
commitff5effdf455bd6e694ff0bb3e0793515a2214adb
authorJeff King <peff@peff.net>
Fri, 3 Aug 2012 16:19:16 +0000 (3 12:19 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Aug 2012 20:03:34 +0000 (3 13:03 -0700)
tree944be26b5dd70882b10b587fd4e3a5a4bb0faa63
parent745c7c8e6252ba41430a1442e1fa8da2ec40e9c2
include agent identifier in capability string

Instead of having the client advertise a particular version
number in the git protocol, we have managed extensions and
backwards compatibility by having clients and servers
advertise capabilities that they support. This is far more
robust than having each side consult a table of
known versions, and provides sufficient information for the
protocol interaction to complete.

However, it does not allow servers to keep statistics on
which client versions are being used. This information is
not necessary to complete the network request (the
capabilities provide enough information for that), but it
may be helpful to conduct a general survey of client
versions in use.

We already send the client version in the user-agent header
for http requests; adding it here allows us to gather
similar statistics for non-http requests.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fetch-pack.c
builtin/receive-pack.c
builtin/send-pack.c
upload-pack.c
version.c
version.h