{"thread":{"id":"46570","subject":"Would it make sense to add `--depth=0` feature?","startedAt":"2017-08-11T23:23:45Z","lastAt":"2017-08-12T09:23:33Z","messageCount":2,"participants":["ankostis","Philip Oakley"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"326181","messageId":"CA+dhYEXDsgnmKTf9OW+_QTPkcVkfm99ffWOYdum7uUTnvaaCeA@mail.gmail.com","threadId":"46570","inReplyTo":null,"subject":"Would it make sense to add `--depth=0` feature?","fromName":"ankostis","fromEmail":"ankostis@gmail.com","sentAt":"2017-08-11T23:23:08Z","receivedAt":"2017-08-11T23:23:45Z","isPatch":false,"sender":{"key":"ankostis@gmail.com","avatar":"https://gravatar.com/avatar/1f3597ab8ad44cbb0fd782a2773e3aba94a52c03f9f6bbe5ccb7f1fe2581b12b?d=mp&s=160"},"body":"Would it be feasible/sensical to support clone/fetch with --depth=0?\nThe point is to download the tags/commit objects but not the actual\ntrees and blobs,\ncreating a \"ledger\" acting as a promise for the remote'e repo content?\n\nIs there some estimation of the effort required to do such thing?\n\nBest,\n  Kostis\n"},{"id":"326208","messageId":"F3E6E31F66C645D8B86BCB8B6E639BC3@PhilipOakley","threadId":"46570","inReplyTo":"CA+dhYEXDsgnmKTf9OW+_QTPkcVkfm99ffWOYdum7uUTnvaaCeA@mail.gmail.com","subject":"Re: Would it make sense to add `--depth=0` feature?","fromName":"Philip Oakley","fromEmail":"philipoakley@iee.org","sentAt":"2017-08-12T09:23:23Z","receivedAt":"2017-08-12T09:23:33Z","isPatch":false,"sender":{"key":"philipoakley@iee.email","avatar":"https://avatars.githubusercontent.com/u/914343?v=4"},"body":"From: \"ankostis\" <ankostis@gmail.com>\n> Would it be feasible/sensical to support clone/fetch with --depth=0?\n> The point is to download the tags/commit objects but not the actual\n> trees and blobs,\n> creating a \"ledger\" acting as a promise for the remote'e repo content?\n>\n> Is there some estimation of the effort required to do such thing?\n>\n> Best,\n>  Kostis\n\nI think that the desire is reasonable, but that it doesn't match the shallow \nclone idea. I think you are asking for a 'Narrow' clone where there is some \nform of exclusion of the blobs and trees that attach to the commit objects \n(at the various depths of commit graph walking).\n\nThere is some work on-going at the moment for various types of sparse \ndownload (look for \"lazy objects\" and \"partial clone\" on the list archive \nhttps://public-inbox.org/git/?q=) to see if you can help with ensuring that \nthe methods will be useful to you.\n(I'm interested too!)\n--\nPhilip \n\n"}]}