Message ID | 20240731134014.2299361-1-christian.couder@gmail.com (mailing list archive) |
---|---|
Headers | show |
Series | Introduce a "promisor-remote" capability | expand |
Christian Couder <christian.couder@gmail.com> writes: > Earlier this year, I sent 3 versions of a patch series with the goal > of allowing a client C to clone from a server S while using the same > promisor remote X that S already use. See: > > https://lore.kernel.org/git/20240418184043.2900955-1-christian.couder@gmail.com/ > > Junio suggested to instead implement that feature using: I actually do not see it as "instead". The end result would be the same when things go right. The only "instead" part is that a protocol exchange gives you a chance to make sure that the server can tell that it is OK to omit objects available elsewhere and the fetcher knows about it, instead of letting the server blindly assuming that it is fine to omit objects. > This patch series implements that protocol extension called > "promisor-remote" (that name is open to change or simplification) > which allows S and C to agree on C using X directly or not. ;-)
On Wed, Jul 31, 2024 at 03:40:10PM +0200, Christian Couder wrote: > I have tried to implement it in a quite generic way that could allow S > and C to share more information about promisor remotes and how to use > them. > > For now C doesn't use the information it gets from S when cloning. > That information is only used to decide if C is Ok to use the promisor > remotes advertised by S. But this could change which could make it > much simpler for clients than using the current way of passing > information about X with the `-c` option of `git clone` many times on > the command line. I left a review after carefully reading these patches. I had a couple of technical questions and suggestions of things to change. But it's hard to have a definite opinion about the feature overall without seeing how it is used in practice. I didn't see anything that made me concerned, though, so I think this is a worthwhile experimental feature. Thanks, Taylor