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

Re: Caching Git Pull

From
Son Luong Ngoc <sluongng@gmail.com>
Date
Sep 14, 2020, 08:39 UTC
Message-ID
<90AE4B78-36E8-40B6-9D7C-E198E3004941@gmail.com>
In-Reply-To
<70DB3786-CB8E-4D82-9774-439AB2A79A8D@gmail.com>
Note: resend with plain-text format
Hi Benson,
Show 5 quoted lines
> On Sep 14, 2020, at 07:27, Benson Muite <benson_muite@emailplus.org> wrote:
> 
> Hi,
> 
> Is there some way I can add functionality for caching git pull to allow continuation of a partially complete pull from a git repository to a local machine. 

I believe there has been some recent works toward this direction with Packfile Uri feature [1] [2] where a packfile could be uploaded to CDN and then advertised by the hosting remote so that clients who enabled the feature can download the big part of the clone via CDN instead.

[1]: https://github.com/git/git/blob/master/Documentation/technical/packfile-uri.txt [2]: https://public-inbox.org/git/cover.1591821067.git.jonathantanmy@google.com/

However I don't think any major Git hosting provider (Github, Bitbucket, Gitlab etc...) have started using this feature.
Show 7 quoted lines
> As an example the command wget -c allows continuation of a partially complete download. This would be very helpful for large commits which fail with:
> 
> fatal: the remote end hung up unexpectedly
> fatal: early EOF
> 
> Regards,
> Benson
I will cc Jonathan Tan(author) to discuss more regarding path toward resumable git clone.

Cheers, Son Luong.

Previous: Benson Muite
Message 2 of 2 in “Caching Git Pull”
  1. Benson MuiteSep 14, 2020
  2. Son Luong NgocSep 14, 2020

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.