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

Re: [PATCH] Transitively read alternatives

From
Martin Waitz <tali@admingilde.org>
Date
May 1, 2006, 22:53 UTC
Message-ID
<20060501225335.GI20847@admingilde.org>
In-Reply-To
<7v1wvdsbuj.fsf@assigned-by-dhcp.cox.net>
hoi :)
On Mon, May 01, 2006 at 01:56:36PM -0700, Junio C Hamano wrote:
Show 8 quoted lines
> If you have a local copy of Linus, Jeff and David trees, you
> could arrange Jeff tree to borrow from Linus and David, and
> David tree to borrow from Linus and Jeff.  I wonder what the new
> code does when you add a new repository that borrows from Jeff
> and David.  Does it borrow from Linus twice?  Four times?  Does
> it stop without falling into endless recursion?  I did not do
> this myself because I was lazy and did not want to address these
> issues.

I haven't tested these corner cases extensively yet, but from reading the code it should behave like this:

If you have loops or multiple references to the same repository then only the first occurance is used. When reading a reference to an alternate object store for the second time it is simply ignored.

But of course you should be careful when you set up alternate files. Having two repositories reference each other and then simultanously running git-prune in both is obviously not a good idea ;-).

... more testing ...

Well of course practice and reality always differ... I'll send an updated patch shortly ;-)

-- 
Martin Waitz
Previous: Junio C HamanoNext: Martin Waitz
Message 3 of 6 in “Transitively read alternatives”
  1. Transitively read alternativesMartin Waitz, May 1, 2006
  2. Junio C HamanoMay 1, 2006
  3. Martin WaitzMay 1, 2006
  4. Transitively read alternativesMartin Waitz, May 2, 2006
  5. Junio C HamanoMay 3, 2006
  6. Martin WaitzMay 3, 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.