* 'Deepen' after "git clone --depth=1"?
@ 2010-03-01 3:55 Phil Miller
2010-03-01 11:13 ` Yuriy Kaminskiy
0 siblings, 1 reply; 2+ messages in thread
From: Phil Miller @ 2010-03-01 3:55 UTC (permalink / raw)
To: Git Mailing List
Suppose I want to make a shallow clone of a repository for some
size-sensitive application. I may later want to fill out the complete
history of that repository, so that I can work with it as if I had
done a full-depth clone to begin with. Is there an existing porcelain
command/option to produce that effect? If not, is there a fundamental
reason why this couldn't be implemented? It looks like this is
something fetch-pack should be able to do, but its documentation
doesn't seem to describe how. Also, the man page for fetch appears to
lie, in that --depth=n (where n is greater than the clone depth)
doesn't have any noticeable effect.
If the answer is simply "no one's written the code to do it yet", I'll
be happy to provide the necessary round tuits.
Phil
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 'Deepen' after "git clone --depth=1"?
2010-03-01 3:55 'Deepen' after "git clone --depth=1"? Phil Miller
@ 2010-03-01 11:13 ` Yuriy Kaminskiy
0 siblings, 0 replies; 2+ messages in thread
From: Yuriy Kaminskiy @ 2010-03-01 11:13 UTC (permalink / raw)
To: git
On 01.03.2010 06:55, Phil Miller wrote:
> Suppose I want to make a shallow clone of a repository for some
> size-sensitive application. I may later want to fill out the complete
> history of that repository, so that I can work with it as if I had
> done a full-depth clone to begin with. Is there an existing porcelain
> command/option to produce that effect? If not, is there a fundamental
> reason why this couldn't be implemented? It looks like this is
> something fetch-pack should be able to do, but its documentation
> doesn't seem to describe how. Also, the man page for fetch appears to
> lie, in that --depth=n (where n is greater than the clone depth)
> doesn't have any noticeable effect.
Last time I've tried (1.6.x),
git fetch --depth=n
indeed, did nothing, but
git fetch --depth=n origin master
worked (deepened history; but it seems it redownloaded (some) objects).
> If the answer is simply "no one's written the code to do it yet", I'll
> be happy to provide the necessary round tuits.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-01 11:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-01 3:55 'Deepen' after "git clone --depth=1"? Phil Miller
2010-03-01 11:13 ` Yuriy Kaminskiy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).