Feature wish: Cloning without history
- From
- Sven Ekman <svekman@yahoo.se>
- Date
- May 18, 2006, 19:21 UTC
- Message-ID
- <20060518192144.15912.qmail@web25913.mail.ukl.yahoo.com>
Hello,
Would it be possible to add an option to git-clone to skip the complete history? The result should be a repository which contains the current head only (or maybe a specified tag) and has that commit id added to .git/info/grafts. For the fetch process, this would certainly have to imply the --no-tags flag.
>From a user's point of view I'd imagine something like
this:
git-clone --no-history=v2.6.16 \
git://git.kernel.org/.../linux-2.6.gitThe background: I'm regularly building kernels for a handful of machines, and while I am happy to use the blessings of git to get updates from the -stable releases, I see no point in wasting space for a copy of the complete kernel history on every single machine. In practice this works pretty good, once I have manually created such a castrated repository.
Sven