From: Eric W. Biederman Date: Wed, 19 Apr 2006 09:42:34 GMT Subject: Re: Clone with local alternates? Message-ID: In-Reply-To: <1145435957.13200.39.camel@pmac.infradead.org> David Woodhouse writes: > On Tue, 2006-04-18 at 19:56 -0400, Shawn Pearce wrote: >> git clone --reference=/foo git://remote/foo > > That's nice. What would be even _nicer_ is if I could enforce its usage > on the server. I keep a clean copy of Linus' kernel tree on the machine > with the git dæmon, so I'd like to make it refuse to send any objects > which are in that tree and which people should already have fetched from > elsewhere anyway. Given how large the linux kernel archive is I can see the desire. At git startup there is an exchange of common commits. to find the best place to build the pack from so what you want is possible. I haven't a clue how you would describe it though in the face of multiple branches, coming off the trunk at different times. Eric