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

Re: Would it make sense to add `--depth=0` feature?

From
Philip Oakley <philipoakley@iee.org>
Date
Aug 12, 2017, 09:23 UTC
Message-ID
<F3E6E31F66C645D8B86BCB8B6E639BC3@PhilipOakley>
In-Reply-To
<CA+dhYEXDsgnmKTf9OW+_QTPkcVkfm99ffWOYdum7uUTnvaaCeA@mail.gmail.com>
From: "ankostis" <ankostis@gmail.com>
Show 9 quoted lines
> Would it be feasible/sensical to support clone/fetch with --depth=0?
> The point is to download the tags/commit objects but not the actual
> trees and blobs,
> creating a "ledger" acting as a promise for the remote'e repo content?
>
> Is there some estimation of the effort required to do such thing?
>
> Best,
>  Kostis

I think that the desire is reasonable, but that it doesn't match the shallow clone idea. I think you are asking for a 'Narrow' clone where there is some form of exclusion of the blobs and trees that attach to the commit objects (at the various depths of commit graph walking).

There is some work on-going at the moment for various types of sparse download (look for "lazy objects" and "partial clone" on the list archive https://public-inbox.org/git/?q=) to see if you can help with ensuring that the methods will be useful to you. (I'm interested too!) -- Philip

Previous: ankostis
Message 2 of 2 in “Would it make sense to add `--depth=0` feature?”
  1. ankostisAug 11, 2017
  2. Philip OakleyAug 12, 2017

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.