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

Re: Regarding the determinacy of 'git describe'

From
Andreas Krey <a.krey@gmx.de>
Date
Jan 19, 2015, 16:10 UTC
Message-ID
<20150119161018.GA12632@inner.h.apk.li>
In-Reply-To
<20150116132917.GB7660@inner.h.apk.li>

On Fri, 16 Jan 2015 14:29:17 +0000, Andreas Krey wrote: ...

Show 7 quoted lines
> === /tmp/tmp-ws-20150116-11355-v7zfcc
> 
> searching to describe HEAD
>  lightweight        4 r2.4/bl-0
>  lightweight        4 r2.4/bl-1
> traversed 5 commits
> r2.4/bl-0-4-g689e350

Apparently, this comes because two of the commit have the same timestamp, affecting the log ordering (and presumably the order in which they are used by 'git describe' as well). Also explains why it happens with different probability on different machines.

But should 'git describe' behave this way?
Andreas
-- 
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
Previous: Andreas Krey
Message 3 of 3 in “Regarding the determinacy of 'git describe'”
  1. Andreas KreyJan 16, 2015
  2. Andreas KreyJan 16, 2015
  3. Andreas KreyJan 19, 2015

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.