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

Re: Supporting --depth when cloning from a bundle

From
Konstantin Ryabitsev <konstantin@linuxfoundation.org>
Date
Feb 17, 2022, 14:19 UTC
Message-ID
<20220217141910.oaa6i4lvnotrbecq@meerkat.local>
In-Reply-To
<xmqqzgmqbfq7.fsf@gitster.g>
On Wed, Feb 16, 2022 at 02:37:20PM -0800, Junio C Hamano wrote:
Show 6 quoted lines
> The "depth" is used to negitiate what objects to include in the
> packfile that is transmit from the other side.  That would not
> fundamentally work on bundles, because a bundle is pregenerated and
> there is nobody on the other side for you to negotiate with to
> affect what objects are included in the packfile which is contained
> in the bundle file.
Junio:

Sorry for the potentially stupid follow-up question. I know that git makes a distinction when cloning locally between a direct path and a file:// URL (e.g. it's only possible to do a shallow clone from a local repository when using the file:// scheme). When that happens, doesn't that same negotiation happen locally (perhaps in a simulated way)? If that so, then theoretically the same approach could be taken with the bundle file?

(I'm not actually that interested in that feature, to be honest -- I'd much rather see further work on git-native CDN offload of packfiles, so we stop using kludges like bundle files for this purpose.)

-K
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “Supporting --depth when cloning from a bundle”
  1. Konstantin RyabitsevFeb 16, 2022
  2. Junio C HamanoFeb 16, 2022
  3. Konstantin RyabitsevFeb 17, 2022
  4. Junio C HamanoFeb 17, 2022

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.