Re: Will git have a baseline feature or something alike?
- From
Sean <seanlkml@sympatico.ca>
- Date
- Feb 29, 2008, 09:56 UTC
- Message-ID
- <BAYC1-PASMTP1509BFBE329A906C583BDCAE140@CEZ.ICE>
- In-Reply-To
- <f17812d70802290123raa099bag17a6f7b89de65dd4@mail.gmail.com>
On Fri, 29 Feb 2008 17:23:37 +0800 "eric miao" <eric.y.miao@gmail.com> wrote:
Hi Eric,
Show 8 quoted lines
> I kept a mirror of > > http://www.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git > > by a crontab task fetching the updated commits at midnight everyday. > > Yet I found the repository now grows to be 1.2G without checking out > anything. The checked out working tree of this is about 1.5G.
There's something wrong in your setup, the entire kernel history should take less than 200M.
Show 5 quoted lines
> I tried "git prune" and "git repack" but it still remains so large. The > trend of the kernel is still going to be enlarged. Thus I'm thinking > of the possibility of a baseline feature. One can totally forget about > the history before that baseline, and start the development there > after.
Git provides "shallow" clones which essentially give you that ability today via the --depth option. While it won't automatically determine a baseline, it avoids the need for you to download a tarball first.
Sean