git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Adding a 'version' command to the server (was: git@vger.kernel.org)

From
LWLea Wiemann <lewiemann@gmail.com>
Date
Jun 27, 2008, 23:07 UTC
Message-ID
<486572BC.9070201@gmail.com>
In-Reply-To
<7viqvupm3l.fsf@gitster.siamese.dyndns.org>
Junio C Hamano wrote:
> It is still possible to connect to older remote end with new clients, but
> you have to explicitly ask for "git-upload-pack" by using --upload-pack=
> option when running "git fetch"

Now that the current git won't work with older servers anyway, what about using this opportunity to add a 'version' command to the server? With such a command, such problems would seem to be quite easily avoidable in the future, since the client can discriminate based on the server's version.

I'm not sure how to implement this (the problems seem to be that (a) it needs to work with git-shell and real shells, and (b) that older clients must not be supplied with a version number in order not to break them), but perhaps this is worth pondering.

Apologies if this has been discussed before.
-- Lea
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 8 in “git@vger.kernel.org”
  1. Junio C HamanoJun 27, 2008
  2. Junio C HamanoJun 27, 2008
  3. Adding a 'version' command to the server (was: git@vger.kernel.org)Lea Wiemann, Jun 27, 2008
  4. Junio C HamanoJun 27, 2008
  5. Lea WiemannJun 27, 2008
  6. Alex RiesenJun 28, 2008
  7. Lea WiemannJun 28, 2008
  8. Shawn O. PearceJun 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.