9front - general discussion about 9front
 help / color / mirror / Atom feed
From: hiro <23hiro@gmail.com>
To: 9front@9front.org
Subject: Re: [9front] git/query: improve LCA results
Date: Sun, 29 Aug 2021 09:45:52 +0200	[thread overview]
Message-ID: <CAFSF3XPWb4T1Bk2NRm50wLEK4TkGr+2OHMybcQ7r-aPHmsauyQ@mail.gmail.com> (raw)
In-Reply-To: <77A01EE7FDB6C6E09DFECCDC61185541@eigenstate.org>

> and we want to find the least common ancestor of
commits 'b' and 'e', we will return commit 'a'.

whether it's least or most common (no idea what that means), it's the
only ancestor in your example anyway...

> This is technically the correct answer: we can get to 'a'
with 1 step from 'e', and 2 from 'e'

I count differently, either it's 2 hops (e-f-a) or 4 hops

> for a total of 3

so you mean 6 ?

> steps, which is shorter than the number of steps to
get from 'e' to 'b' directly

3 < 3 ?

  reply	other threads:[~2021-08-29  7:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-29  2:04 ori
2021-08-29  2:33 ` ori
2021-08-29  7:45   ` hiro [this message]
2021-08-29 15:28     ` ori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFSF3XPWb4T1Bk2NRm50wLEK4TkGr+2OHMybcQ7r-aPHmsauyQ@mail.gmail.com \
    --to=23hiro@gmail.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).