Re: How to clone-pack the HEAD?
From: Petr Baudis <hidden>
Date: 2016-06-15 22:42:14
Dear diary, on Thu, Dec 15, 2005 at 02:45:32AM CET, I got a letter where Junio C Hamano [off-list ref] said that...
Petr Baudis [off-list ref] writes:quoted
Except that I cannot do the guessing git-clone-pack does (without fetching all the branches)Exactly my point. If you are not getting all the branches, you are not cloning but doing something else.
Ah, play with the words. Sure I'm cloning - however I'm not cloning a repository but a branch. In Cogito world, that's the only thing that makes sense to clone, in GIT world it's more complicated (you don't always clone the whole repository there either, since git-clone-pack lets you narrow down the refs).
Extending git-fetch-pack would be the right approach if that is what you are trying to do.
I'll then try to extend git-fetch-pack instead. I'll send some fix for git-clone-pack anyway, though. ;-) -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ VI has two modes: the one in which it beeps and the one in which it doesn't.