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

Re: Make "git clone" less of a deathly quiet experience

From
Petr Baudis <pasky@suse.cz>
Date
Feb 11, 2006, 13:05 UTC
Message-ID
<20060211130530.GR31278@pasky.or.cz>
In-Reply-To
<43EDA3D0.7090204@gorzow.mm.pl>

Dear diary, on Sat, Feb 11, 2006 at 09:44:00AM CET, I got a letter where Radoslaw Szkodzinski <astralstorm@gorzow.mm.pl> said that...

Show 10 quoted lines
> Craig Schlenter wrote:
> > On 11 Feb 2006, at 7:48 AM, Junio C Hamano wrote:
> > It would be nice if the "partial pack" or whatever that has been
> > downloaded at the time of the breakage could be re-used and
> > things could start "from that point onwards" or the bits that were
> > already received could be unpacked. Comments?
> 
> It even already works on plain http repos with git fetch.
> (e.g. WineHQ repository)
> Why git protocol doesn't support it?

Because it works totally different. When downloading from plain HTTP repos, you are just downloading files from the remote repository and it is easy to pick up wherever you left (and last night, I just added a possibility to Cogito to resume an interrupted cg-clone by just cd'ing inside and running cg-fetch, as is; it's pretty neat) - you just resume downloading of the file you downloaded last, and don't download again the files you already have.

But the native git protocol works completely differently - you tell the server "give me all objects you have between object X and head", the object will generate a completely custom pack just for you and send it over the network. The next time you fetch, you just ask for a pack between object X and head again, but the head can be already totally different. What we would have to do is to check for interrupted packfiles before fetching, attempt to fix them (cutting out the incomplete objects and broken delta chains, if applicable), and then tell the remote side to skip those objects; but that may not be easy because there can be a lot of "loose fibres". Another way would be to just tell the server "if head is still Y, start sending the pack only after N bytes". *shudder*

-- 
				Petr "Pasky" Baudis
Stuff: http://pasky.or.cz/
Of the 3 great composers Mozart tells us what it's like to be human,
Beethoven tells us what it's like to be Beethoven and Bach tells us
what it's like to be the universe.  -- Douglas Adams
Previous: Radoslaw SzkodzinskiNext: Radoslaw Szkodzinski
Message 8 of 24 in “Make "git clone" less of a deathly quiet experience”
  1. Linus TorvaldsFeb 11, 2006
  2. Linus TorvaldsFeb 11, 2006
  3. Junio C HamanoFeb 11, 2006
  4. Linus TorvaldsFeb 11, 2006
  5. Junio C HamanoFeb 11, 2006
  6. Craig SchlenterFeb 11, 2006
  7. Radoslaw SzkodzinskiFeb 11, 2006
  8. Petr BaudisFeb 11, 2006
  9. Radoslaw SzkodzinskiFeb 11, 2006
  10. Petr BaudisFeb 11, 2006
  11. Petr BaudisFeb 11, 2006
  12. Alex RiesenFeb 11, 2006
  13. Linus TorvaldsFeb 11, 2006
  14. Keith PackardFeb 11, 2006
  15. Andreas EricssonFeb 12, 2006
  16. Keith PackardFeb 12, 2006
  17. Andreas EricssonFeb 12, 2006
  18. Keith PackardFeb 12, 2006
  19. Eric W. BiedermanFeb 16, 2006
  20. Junio C HamanoFeb 16, 2006
  21. Martin LanghoffFeb 13, 2006
  22. Junio C HamanoFeb 13, 2006
  23. Alex RiesenFeb 11, 2006
  24. Linus TorvaldsFeb 11, 2006

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.