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

Re: Consistency question

From
Andreas Krey <a.krey@gmx.de>
Date
Jan 15, 2014, 12:44 UTC
Message-ID
<20140115124434.GA27030@inner.h.apk.li>
In-Reply-To
<871u098ocy.fsf@fencepost.gnu.org>

On Wed, 15 Jan 2014 12:40:29 +0000, David Kastrup wrote: ...

> With a single root, "depth" helps a lot.  When looking for a common
> parent of a number of commits, you first shorten all ancestries to the
> same size and then you can look for the point of convergence in
> lockstep.

Hmm, how about traversing from all the start commits downwards simultaneously, noting which start you say each commit from, and stopping when you have a commit carrying all start labels?

I don't quite see how the same size plus lockstep works out (but the 'same size' part is possibly the same as my 'concurrent traversal').

> But didn't git forego the "single root" requirement in its commit DAG at
> some point of time?
About at the beginning, I guess. Nothing in the data model ever required it?
> ... The rest is just idle curiosity.
Me too, mostly. I may have to do some traversal for tree/dag painting.
Andreas
-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
Previous: David KastrupNext: David Kastrup
Message 4 of 8 in “Consistency question”
  1. David KastrupJan 15, 2014
  2. Jeff KingJan 15, 2014
  3. David KastrupJan 15, 2014
  4. Andreas KreyJan 15, 2014
  5. David KastrupJan 15, 2014
  6. Andreas KreyJan 15, 2014
  7. David KastrupJan 15, 2014
  8. Mike HommeyJan 18, 2014

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.