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

Re: [RFC] Looking at multiple ancestors in merge

From
Junio C Hamano <junkio@cox.net>
Date
Aug 26, 2005, 09:29 UTC
Message-ID
<7vwtm9f3me.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<Pine.LNX.4.63.0508260108290.23242@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> writes:
> I've started this, and have gotten as far as having read-tree accept > 3
> trees and ignore everything but the last 3. Am I correct in assuming that
> if I break read-tree in any way, some test will fail?

If some test fails you would know you broke it, but the inverse is probably not always true.

I think the current read-tree test suite has reasonably wide coverage of all the interesting cases. But the definition of "interesting" was derived from the current world order (IOW, the test suite was designed around the way we do things right now as a whitebox test, not a blackbox test). I would not be surprised if some of them did not catch breakage you may introduce during the development.

I wonder however if extending the current way of doing things in the cache is the right thing. Right now we use two bits out of the top four bits for recording stage, one bit for the update bit, so you have only one extra bit to extend the number of stages, which means you could hold at most 7 trees at once.

You "ignore things but the last 3", so this may not be too much of a problem, but I am a bit puzzled what you meant by it though. Are you talking about reading more than 3 trees and keeping only the 3 to be merged, discarding the rest, doing the selection per path?

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 6 of 7 in “[RFC] Looking at multiple ancestors in merge”
  1. Daniel BarkalowAug 25, 2005
  2. A Large Angry SCMAug 25, 2005
  3. Daniel BarkalowAug 25, 2005
  4. Matthias UrlichsAug 25, 2005
  5. Daniel BarkalowAug 26, 2005
  6. Junio C HamanoAug 26, 2005
  7. Daniel BarkalowAug 26, 2005

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.