From: Junio C Hamano <gitster@pobox.com>
To: Patrick Steinhardt <ps@pks.im>
Cc: Aryan Gupta <garyan447@gmail.com>,
git@vger.kernel.org, karthik nayak <karthik.188@gmail.com>
Subject: Re: [GSoC] Discuss: Implement support for reftables in ‘dumb’ HTTP transport
Date: Thu, 21 Mar 2024 09:59:03 -0700 [thread overview]
Message-ID: <xmqqcyrna5d4.fsf@gitster.g> (raw)
In-Reply-To: <Zfwv24OnsD0pDQ7D@tanuki> (Patrick Steinhardt's message of "Thu, 21 Mar 2024 14:02:19 +0100")
Patrick Steinhardt <ps@pks.im> writes:
> The reason why I added this project is that I found it to be interesting
> as a thought experiment. The reason why we have "info/refs" is to help
> out clients of the dumb HTTP transport to figure out actual refs in the
> repository because they typically live in many separate files. But what
> I realized is that we don't actually need it with the reftable format
> anymore because we basically already have a definitive list of all files
> that a client needs to download to acquire all refs: "tables.list".
Yes, YES, YES!!!
> So theoretically speaking we can implement support for dumb HTTP with
> reftables by having the client download "tables.list" and then fetch all
> the "*.ref" files listed in it. Whether that is sensible may be a
> different question.
It is not even theoretical---I think it is the RIGHT way to do the
dumb HTTP walker if we had reftable from the beginning. Having a
file at a known location where we can start "walking" from is
a very powerful thing [*1*].
If we do not have to change the server side at all, which I think
what you are saying, that removes the major part of the problem I
was having with this proposal. I do not even have to worry about
speaking with the first-world bias and hurting folks with needs that
are only served by the dumb HTTP walker, either.
By the way, about two years ago, we have talked about making the
first step to deprecate dumb HTTP walker [*2*], but given that
nothing concrete materialized, we are ready to move further, yet.
[Footnote]
*1* With the filesystem backed refs, because there was no standard
and widely supported way to ask a dumb HTTP server "what are the
files and directories under this hierarchy?" and that was here
the ugly "info/refs" hack came from.
*2* https://lore.kernel.org/git/f8639116d2d384a6d285c75830c52d8a8230ae6b.1647243509.git.ps@pks.im/
prev parent reply other threads:[~2024-03-21 16:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-13 21:09 [GSoC] Discuss: Implement support for reftables in ‘dumb’ HTTP transport Aryan Gupta
2024-03-13 21:39 ` Junio C Hamano
2024-03-21 13:02 ` Patrick Steinhardt
2024-03-21 16:59 ` Junio C Hamano [this message]
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=xmqqcyrna5d4.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=garyan447@gmail.com \
--cc=git@vger.kernel.org \
--cc=karthik.188@gmail.com \
--cc=ps@pks.im \
/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).