From: Miklos Vajna <vmiklos@frugalware.org>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: git describe weird behaviour
Date: Wed, 10 Nov 2010 21:40:34 +0100 [thread overview]
Message-ID: <20101110204034.GO22105@genesis.frugalware.org> (raw)
In-Reply-To: <7vaalhhstp.fsf@alter.siamese.dyndns.org>
[-- Attachment #1: Type: text/plain, Size: 1176 bytes --]
On Wed, Nov 10, 2010 at 11:38:58AM -0800, Junio C Hamano <gitster@pobox.com> wrote:
> Just a guess. Does this have to do with 80dbae0 (Chose better tag names
> in git-describe after merges., 2007-01-10)?
Hmm, not sure. I tried reverting that commit, but that resulted in
conflicts - git checkout 80dbae0^ produces a git binary that can't read
the index version we have today. :)
But I think the approach to follow the first parent only would solve the
problem outlined in the commit message of 80dbae0 as well: I think it's
pretty rare to tag a commit in a feature branch, then merge it.
I mean the trivial proof of concenpt below finds the right tag here:
$ ~/git/git/git describe
1.4pre1-572-g42b497b
Even if it does not count all the commits since that tag:
$ git rev-list 1.4pre1..|wc -l
883
Thanks.
diff --git a/builtin/describe.c b/builtin/describe.c
index 43caff2..f32eaf4 100644
--- a/builtin/describe.c
+++ b/builtin/describe.c
@@ -303,6 +303,7 @@ static void describe(const char *arg, int last_one)
insert_by_date(p, &list);
p->object.flags |= c->object.flags;
parents = parents->next;
+ break;
}
}
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2010-11-10 20:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-10 1:00 git describe weird behaviour Miklos Vajna
2010-11-10 4:14 ` Jeff King
2010-11-10 8:47 ` Maaartin
2010-11-10 8:52 ` Thomas Rast
2010-11-10 14:03 ` Miklos Vajna
2010-12-09 1:33 ` Miklos Vajna
2010-12-09 3:28 ` Jeff King
2010-11-10 19:38 ` Junio C Hamano
2010-11-10 20:40 ` Miklos Vajna [this message]
2010-11-10 21:24 ` Jonathan Nieder
2010-11-10 22:07 ` Miklos Vajna
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=20101110204034.GO22105@genesis.frugalware.org \
--to=vmiklos@frugalware.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/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).