From: Richard Maw <richard.maw@codethink.co.uk>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: Some issues when trying to set up a shallow git mirror server
Date: Wed, 13 Jan 2016 11:37:43 +0000 [thread overview]
Message-ID: <20160113113743.GF3397@logi.codethink.co.uk> (raw)
In-Reply-To: <xmqqy4butzw8.fsf@gitster.mtv.corp.google.com>
On Tue, Jan 12, 2016 at 10:29:27AM -0800, Junio C Hamano wrote:
> I left the detail as vague ;-).
>
> The new request does not have to piggyback on existing "want"
> message. And thinking about it again, it probably is cleaner if it
> didn't. After the use of the protocol extension "ancestry-check" is
> negotiated the usual way between the sender and the receiver, the
> receiver would send "check-ff N O" and "check-ff N P" after it sends
> all of its "want" messages but before it sends the "flush" to go
> into the "have"/"ack" common ancestry discovery.
>
> I do not have a strong opinion on where the sender should reply with
> "not-ff N O" in the protocol. Immediately after the receiver says
> "I've done with my 'want's (and now 'check-ff's)" by flushing may be
> a good place to do so.
In that case, I can think of two other useful times to do it:
1. Before any "want" requests.
This would also let you extend ls-remote to let it display ancestry.
This is complicated by the fact that normally the client responds
with which features it supports in the first "want",
so the sender would have to support "check-ff N O <FEATURES>"
if it advertised "ancestry-check".
2. After the pack is transferred.
Then the receiver can check ancestry with the objects,
and only request ancestry if it's missing history.
I'm not sure whether there's any value in not requesting it,
since while it would reduce the amount of work the sender needs to do,
it still means the sender has to wait for the client to do the check,
rather than hanging up and allowing it to process another connection.
next prev parent reply other threads:[~2016-01-13 11:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-07 16:54 Some issues when trying to set up a shallow git mirror server Richard Maw
2016-01-07 18:00 ` Junio C Hamano
2016-01-08 10:19 ` Richard Maw
2016-01-08 10:44 ` Duy Nguyen
2016-01-08 10:52 ` Richard Maw
2016-01-08 21:37 ` Junio C Hamano
2016-01-11 15:51 ` Richard Maw
2016-01-12 18:29 ` Junio C Hamano
2016-01-13 11:37 ` Richard Maw [this message]
2016-01-13 17:14 ` Junio C Hamano
2016-01-13 17:43 ` Richard Maw
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=20160113113743.GF3397@logi.codethink.co.uk \
--to=richard.maw@codethink.co.uk \
--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).