git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: New Feature wanted: Is it possible to let git clone continue last break point?

From
Jeff King <peff@peff.net>
Date
Nov 2, 2011, 23:27 UTC
Message-ID
<20111102232735.GA17466@sigill.intra.peff.net>
In-Reply-To
<7vwrbigna7.fsf@alter.siamese.dyndns.org>
On Wed, Nov 02, 2011 at 03:41:36PM -0700, Junio C Hamano wrote:
Show 13 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > Which is all a roundabout way of saying that the git protocol is really
> > the sane way to do efficient transfers. An alternative, much simpler
> > scheme would be for the server to just say:
> >
> >   - if you have nothing, then prime with URL http://host/bundle
> >
> > And then _only_ clone would bother with checking mirrors. People doing
> > fetch would be expected to do it often enough that not being resumable
> > isn't a big deal.
> 
> I think that is a sensible place to start.

OK. That had been my original intent, but somebody (you?) mentioned the "if you have X" thing at the GitTogether, which got me thinking.

I don't mind starting slow, as long as we don't paint ourselves into a corner for future expansion. I'll try to design the data format for specifying the mirror locations with that extension in mind.

Even if the bundle thing ends up too wasteful, it may still be useful to offer a "if you don't have X, go see Y" type of mirror when "Y" is something efficient, like git:// at a faster host (i.e., the "I built 3 commits on top of Linus" case).

Show 5 quoted lines
> A more fancy conditional "If you have X then fetch this, if you have Y
> fetch that, ..." sounds nice but depending on what branch you are fetching
> the answer has to be different. If we were to do that, the natural place
> for the server to give the redirect instruction to the client is after the
> client finishes saying "want", and before the client starts saying "have".

Agreed. I was really trying to avoid protocol extensions, though, at least for an initial version. I'd like to see how far we can get doing the simplest thing.

-Peff
Previous: Junio C HamanoNext: Shawn Pearce
Message 7 of 18 in “New Feature wanted: Is it possible to let git clone continue last break point?”
  1. netrobyOct 31, 2011
  2. Tay Ray ChuanOct 31, 2011
  3. Jonathan NiederOct 31, 2011
  4. netrobyOct 31, 2011
  5. Jeff KingNov 2, 2011
  6. Junio C HamanoNov 2, 2011
  7. Jeff KingNov 2, 2011
  8. Shawn PearceNov 3, 2011
  9. Jeff KingNov 3, 2011
  10. Shawn PearceNov 3, 2011
  11. Clemens BuchacherNov 4, 2011
  12. Johannes SixtNov 4, 2011
  13. Shawn PearceNov 4, 2011
  14. Jakub NarebskiNov 4, 2011
  15. Nguyen Thai Ngoc DuyNov 4, 2011
  16. Clemens BuchacherNov 5, 2011
  17. Jakub NarebskiOct 31, 2011
  18. Michael SchubertOct 31, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.