From: Jonathan Tan <jonathantanmy@google.com>
To: gitster@pobox.com
Cc: jrnieder@gmail.com, jonathantanmy@google.com,
git@vger.kernel.org, git@jeffhostetler.com
Subject: Re: [PATCH 0/2] Avoiding errors when partial cloning a tagged blob
Date: Mon, 9 Jul 2018 10:10:07 -0700 [thread overview]
Message-ID: <20180709171007.53406-1-jonathantanmy@google.com> (raw)
In-Reply-To: <xmqqpnzwfl4a.fsf@gitster-ct.c.googlers.com>
> I think that refs in files-backend is a bit hard to update to
> annotate with extra information like "is this merely promising or a
> tip of the connectivity graph?" and agree that we should not make
> refs promisors.
OK, we agree on this :-)
> Such an otherwise unreferenced blob could be made into a promised
> object by the promisor repository, though, I think. It can include
> a synthetic tree that points at such a blob in the pack stream data
> if it knows that the resulting pack will be marked with the
> .promisor bit, and by doing so, there is no need to update the
> client side, no?
Yes, that is possible, but I think the client side still needs to be
updated, for the same reason as in my implementation (the client should
check that the server sent all necessary objects - the blob itself in my
case, and the synthetic tree in yours).
I think that if we were planning to introduce a synthetic tree, though,
it would be better just to include the object itself (as in my
implementation). In both solutions, both the protocol and the server
need to be updated, but existing clients will still work (minus the
checking that would still be desirable with both solutions).
next prev parent reply other threads:[~2018-07-09 17:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-06 19:34 [PATCH 0/2] Avoiding errors when partial cloning a tagged blob Jonathan Tan
2018-07-06 19:34 ` [PATCH 1/2] upload-pack: send refs' objects despite "filter" Jonathan Tan
2018-07-06 19:34 ` [PATCH 2/2] clone: check connectivity even if clone is partial Jonathan Tan
2018-07-06 19:38 ` [PATCH 0/2] Avoiding errors when partial cloning a tagged blob Jonathan Tan
2018-07-06 20:10 ` Junio C Hamano
2018-07-06 21:25 ` Jonathan Tan
2018-07-06 21:29 ` Jonathan Nieder
2018-07-06 22:18 ` Junio C Hamano
2018-07-09 16:07 ` Junio C Hamano
2018-07-09 17:10 ` Jonathan Tan [this message]
2018-07-09 19:33 ` Junio C Hamano
2018-07-09 20:07 ` Jonathan Tan
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=20180709171007.53406-1-jonathantanmy@google.com \
--to=jonathantanmy@google.com \
--cc=git@jeffhostetler.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jrnieder@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.