From: Andreas Krey <a.krey@gmx.de>
To: git@vger.kernel.org
Subject: Regarding the determinacy of 'git describe'
Date: Fri, 16 Jan 2015 14:01:13 +0100 [thread overview]
Message-ID: <20150116130113.GA3220@inner.h.apk.li> (raw)
Hi all again,
today another expectation crumbled.
I expected the algo of 'git describe' to be deterministic,
but it happens to return different tags in structurally
identical repositories. These are generated on each run
of a test (and obviously have different dates and thus
commit IDs), and 'git describe' doesn't return the same
tags in all of them.
Is that expected behaviour?
The repos each look like
(commit id and parents truncated to three chars):
538 26d 8f5 (HEAD, origin/r2.4/feature-2, r2.4/feature-2) Merge branch 'r2.4/master' into r2.4/feature-2
26d 20c feature: 1st part
8f5 ac6 (origin/r2.4/master, origin/HEAD, r2.4/master) main: 3rd commit
ac6 20c (tag: r2.4/bl-1) main: 2nd commit
20c (tag: r2.4/bl-0, origin/sidestep) module: initial
So HEAD is two hops away from both tags (bl-0 via 26d and bl-1 via 8f5),
but for one I'd hoped that it always pick bl-1, and especially I'd expect
it to be consistent for a given structure).
Andreas
--
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
next reply other threads:[~2015-01-16 13:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-16 13:01 Andreas Krey [this message]
2015-01-16 13:29 ` Regarding the determinacy of 'git describe' Andreas Krey
2015-01-19 16:10 ` Andreas Krey
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=20150116130113.GA3220@inner.h.apk.li \
--to=a.krey@gmx.de \
--cc=git@vger.kernel.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