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
Junio C Hamano <gitster@pobox.com>
Date
Nov 2, 2011, 22:41 UTC
Message-ID
<7vwrbigna7.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20111102220614.GB14108@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 9 quoted lines
> 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.

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".

Previous: Jeff KingNext: Jeff King
Message 6 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.