Re: [QUESTION] Access to a huge GIT repository.
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Nov 16, 2005, 20:10 UTC
- Message-ID
- <Pine.LNX.4.64.0511161208140.13959@g5.osdl.org>
- In-Reply-To
- <46a038f90511161201h54c5fa73l20b5dcf3b5c19399@mail.gmail.com>
On Thu, 17 Nov 2005, Martin Langhoff wrote:
> > cg-clone already does this. One tricky thing with the selective > cloning is that you want to pull the named head plus all its related > objects, and then pull only the _relevant_ tags.
Well, if you keep to native git protocols, you can trivially do that by just fetching the required heads, and then fetching only the tags for which you have the pointed-to object (ie look for the ^{} thing in git-ls-remote, and check if you have that object, then get those tags).
For rsync, since you get all objects anyway, there's no point to limiting the branches. Might as well just delete them and prune them.
Linus