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

Re: git describe weird behaviour

From
Thomas Rast <trast@student.ethz.ch>
Date
Nov 10, 2010, 08:52 UTC
Message-ID
<201011100952.34352.trast@student.ethz.ch>
In-Reply-To
<20101110041428.GA8955@sigill.intra.peff.net>
Jeff King wrote:
Show 6 quoted lines
> The trick is in keeping track of how far we've gone. It looks like we
> keep the number of seen_commits, increment each time we traverse a
> commit, and then assign that to the "depth" field. But I don't see how
> that can be right. We are traversing in a breadth-first manner, so we
> may look at 1000 commits down one ancestry chain of a merge before
> following the first parent on another.

I haven't really spent more than about 3 minutes on this, but it seems to use insert_by_date() (except for the start of the search) to walk, so it would seem to be affected by date skew in some strange way that I have yet to investigate.

So I merged your git-skew from pu and compiled, and ran
  frugalware-current(master u=)$ git skew --all
  182448414
  frugalware-current(master u=)$ python
  [...]
  >>> 182448414/86400/365.25
  5.7796030116358654

Unless I'm reading your commit message a2ffa6b96 wrong, that means the repo has a worst-case clock skew of on the order of *six years*... So maybe it's once again an undocumented effect of clock skew on our history walks?

-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: MaaartinNext: Miklos Vajna
Message 4 of 11 in “git describe weird behaviour”
  1. Miklos VajnaNov 10, 2010
  2. Jeff KingNov 10, 2010
  3. MaaartinNov 10, 2010
  4. Thomas RastNov 10, 2010
  5. Miklos VajnaNov 10, 2010
  6. Miklos VajnaDec 9, 2010
  7. Jeff KingDec 9, 2010
  8. Junio C HamanoNov 10, 2010
  9. Miklos VajnaNov 10, 2010
  10. Jonathan NiederNov 10, 2010
  11. Miklos VajnaNov 10, 2010

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.