{"thread":{"id":"22860","subject":"'Deepen' after \"git clone --depth=1\"?","startedAt":"2010-03-01T03:55:56Z","lastAt":"2010-03-01T11:13:18Z","messageCount":2,"participants":["Phil Miller","Yuriy Kaminskiy"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"135922","messageId":"81f018ac1002281955g1461abb3q815f9a45c13fb515@mail.gmail.com","threadId":"22860","inReplyTo":null,"subject":"'Deepen' after \"git clone --depth=1\"?","fromName":"Phil Miller","fromEmail":"mille121@illinois.edu","sentAt":"2010-03-01T03:55:56Z","receivedAt":"2010-03-01T03:55:56Z","isPatch":false,"sender":{"key":"mille121@illinois.edu","avatar":"https://avatars.githubusercontent.com/u/126464?v=4"},"body":"Suppose I want to make a shallow clone of a repository for some\nsize-sensitive application. I may later want to fill out the complete\nhistory of that repository, so that I can work with it as if I had\ndone a full-depth clone to begin with. Is there an existing porcelain\ncommand/option to produce that effect? If not, is there a fundamental\nreason why this couldn't be implemented? It looks like this is\nsomething fetch-pack should be able to do, but its documentation\ndoesn't seem to describe how. Also, the man page for fetch appears to\nlie, in that --depth=n (where n is greater than the clone depth)\ndoesn't have any noticeable effect.\n\nIf the answer is simply \"no one's written the code to do it yet\", I'll\nbe happy to provide the necessary round tuits.\n\nPhil\n"},{"id":"135941","messageId":"hmg7gf$gq9$1@dough.gmane.org","threadId":"22860","inReplyTo":"81f018ac1002281955g1461abb3q815f9a45c13fb515@mail.gmail.com","subject":"Re: 'Deepen' after \"git clone --depth=1\"?","fromName":"Yuriy Kaminskiy","fromEmail":"yumkam@mail.ru","sentAt":"2010-03-01T11:13:18Z","receivedAt":"2010-03-01T11:13:18Z","isPatch":false,"sender":{"key":"yumkam@mail.ru","avatar":null},"body":"On 01.03.2010 06:55, Phil Miller wrote:\n> Suppose I want to make a shallow clone of a repository for some\n> size-sensitive application. I may later want to fill out the complete\n> history of that repository, so that I can work with it as if I had\n> done a full-depth clone to begin with. Is there an existing porcelain\n> command/option to produce that effect? If not, is there a fundamental\n> reason why this couldn't be implemented? It looks like this is\n> something fetch-pack should be able to do, but its documentation\n> doesn't seem to describe how. Also, the man page for fetch appears to\n> lie, in that --depth=n (where n is greater than the clone depth)\n> doesn't have any noticeable effect.\n\nLast time I've tried (1.6.x),\n   git fetch --depth=n\nindeed, did nothing, but\n   git fetch --depth=n origin master\nworked (deepened history; but it seems it redownloaded (some) objects).\n\n> If the answer is simply \"no one's written the code to do it yet\", I'll\n> be happy to provide the necessary round tuits.\n"}]}