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

2 messages from 2017-08-11 to 2017-08-12. Participants: ankostis, Philip Oakley.
Thread: https://gitlist.dev/t/46570

## ankostis, 2017-08-11 23:23

Subject: Would it make sense to add `--depth=0` feature?
Message-ID: <CA+dhYEXDsgnmKTf9OW+_QTPkcVkfm99ffWOYdum7uUTnvaaCeA@mail.gmail.com>
URL: https://gitlist.dev/e/CA%2BdhYEXDsgnmKTf9OW%2B_QTPkcVkfm99ffWOYdum7uUTnvaaCeA%40mail.gmail.com

```
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

```

## Philip Oakley, 2017-08-12 09:23

Subject: Re: Would it make sense to add `--depth=0` feature?
Message-ID: <F3E6E31F66C645D8B86BCB8B6E639BC3@PhilipOakley>
URL: https://gitlist.dev/e/F3E6E31F66C645D8B86BCB8B6E639BC3%40PhilipOakley
In-Reply-To: <CA+dhYEXDsgnmKTf9OW+_QTPkcVkfm99ffWOYdum7uUTnvaaCeA@mail.gmail.com>

```
From: "ankostis" <ankostis@gmail.com>
> 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 


```
