git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Clone with local alternates?

From
Eric W. Biederman <ebiederm@xmission.com>
Date
Apr 19, 2006, 09:42 UTC
Message-ID
<m1r73toq9h.fsf@ebiederm.dsl.xmission.com>
In-Reply-To
<1145435957.13200.39.camel@pmac.infradead.org>
David Woodhouse <dwmw2@infradead.org> writes:
Show 8 quoted lines
> 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
Previous: David WoodhouseNext: Eric W. Biederman
Message 6 of 7 in “Clone with local alternates?”
  1. David WoodhouseApr 18, 2006
  2. Shawn PearceApr 18, 2006
  3. David WoodhouseApr 18, 2006
  4. Document git-clone --referenceShawn Pearce, Apr 19, 2006
  5. David WoodhouseApr 19, 2006
  6. Eric W. BiedermanApr 19, 2006
  7. Eric W. BiedermanApr 19, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.