version: add git_user_agent function
commit42dcbb738b47ab7e2b265ed981c9a4a7bda92f97
authorJeff King <peff@peff.net>
Sat, 2 Jun 2012 19:01:12 +0000 (2 15:01 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Jun 2012 20:11:52 +0000 (3 13:11 -0700)
tree2a374e2aed5c26b6921dc3636795714a5cdb6997
parent816fb46be665c8b63647f0096845fef363736b20
version: add git_user_agent function

This is basically a fancy way of saying "git/$GIT_VERSION",
except that it is overridable at build-time and through the
environment. Which means that people who don't want to
advertise their git version (for privacy or security
reasons) can tweak it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
version.c
version.h