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

Re: branch --contains / tag --merged inconsistency

From
FWFerenc Wágner <wferi@niif.hu>
Date
Apr 28, 2018, 06:27 UTC
Message-ID
<877eor6e2i.fsf@lant.ki.iif.hu>
In-Reply-To
<20180427160344.12724-1-szeder.dev@gmail.com>
SZEDER Gábor <szeder.dev@gmail.com> writes:
Show 9 quoted lines
> The commit pointed to by the tag Pacemaker-0.6.1 and its parent have a
> serious clock skew, i.e. they are a few months older than their parents:
> [...]
> (branch|tag|describe|...) (--contains|--merged) use the commit timestamp
> information as a heuristic to avoid traversing parts of the history,
> which makes these operations, especially on big histories, an order of
> magnitude or two faster.  Yeah, commit timestamps can't always be
> trusted, but skewed commits are rare, and skewed commits with this much
> skew are even rarer.
Szia Gábor,

Thank you very much for the explanation! Good to know there's no serious problem or misunderstanding here, but a conscious algorithmic choice being fooled by clock skew. I wonder if there's a way such clock skew can appear without actual committer clocks being off by months...

> FWIW, much work is being done on a cached commit graph including commit
> generation numbers, which will solve this issue both correctly and more
> efficiently.  Perhaps it will already be included in the next release.
Wonderful news, thanks for sharing it!
-- 
Regards,
Feri
Previous: SZEDER GáborNext: Derrick Stolee
Message 3 of 4 in “branch --contains / tag --merged inconsistency”
  1. Ferenc WágnerApr 27, 2018
  2. SZEDER GáborApr 27, 2018
  3. Ferenc WágnerApr 28, 2018
  4. Derrick StoleeApr 30, 2018

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.