git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Lea Wiemann <lewiemann@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Adding a 'version' command to the server (was: git@vger.kernel.org)
Date: Sat, 28 Jun 2008 01:07:40 +0200	[thread overview]
Message-ID: <486572BC.9070201@gmail.com> (raw)
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

  parent reply	other threads:[~2008-06-27 23:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-27 22:08 git@vger.kernel.org Junio C Hamano
2008-06-27 22:14 ` git@vger.kernel.org Junio C Hamano
2008-06-27 23:07 ` Lea Wiemann [this message]
2008-06-27 23:15   ` Adding a 'version' command to the server Junio C Hamano
2008-06-27 23:19     ` Lea Wiemann
2008-06-28 11:43   ` Adding a 'version' command to the server (was: git@vger.kernel.org) Alex Riesen
2008-06-28 12:25     ` Adding a 'version' command to the server Lea Wiemann
2008-06-29  4:08       ` Shawn O. Pearce

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=486572BC.9070201@gmail.com \
    --to=lewiemann@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).