1. 15 Dec, 2017 1 commit
    • Johannes Schindelin's avatar
      version --build-options: report commit, too, if possible · ed32b788
      Johannes Schindelin authored
      In particular when local tags are used (or tags that are pushed to some
      fork) to build Git, it is very hard to figure out from which particular
      revision a particular Git executable was built. It gets worse when those
      tags are deleted, or even updated.
      Let's just report an exact, unabbreviated commit name in our build
      We need to be careful, though, to report when the current commit cannot
      be determined, e.g. when building from a tarball without any associated
      Git repository. This could be the case also when extracting Git's source
      code into an unrelated Git worktree.
      Signed-off-by: Johannes Schindelin's avatarJohannes Schindelin <johannes.schindelin@gmx.de>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
  2. 03 Aug, 2012 1 commit
    • Jeff King's avatar
      include agent identifier in capability string · ff5effdf
      Jeff King authored
      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: default avatarJeff King <peff@peff.net>
      Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
  3. 03 Jun, 2012 2 commits