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

Re: [PATCH] name-rev: Fix tag lookup on repository with mixed types of tags

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 22, 2017, 22:03 UTC
Message-ID
<xmqq4lv7issd.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<CAGHpTBLXrrt0DykbCQHqp2up_BqOVftc8_8Towi3sDbh3M12LQ@mail.gmail.com>
Orgad Shaneh <orgads@gmail.com> writes:
Show 5 quoted lines
> Commit 7550424804 (name-rev: include taggerdate in considering the best
> name) introduced a bug in name-rev.
>
> If a repository has both annotated and non-annotated tags, annotated
> tag will always win, even if it was created decades after the commit.

Thanks. It is a problem that light-weight tags are unduly penalized, and we attempted to address it a few months ago in a slightly different way. The necessary changes are already in 'master' but not yet in any released branch.

Here is an entry in the Release Notes for the next release that will come out of the current 'master'.

 * "git describe --contains" penalized light-weight tags so much that
   they were almost never considered.  Instead, give them about the
   same chance to be considered as an annotated tag that is the same
   age as the underlying commit would.
   (merge ef1e74065c jc/name-rev-lw-tag later to maint).
Previous: Orgad Shaneh
Message 2 of 2 in “name-rev: Fix tag lookup on repository with mixed types of tags”
  1. name-rev: Fix tag lookup on repository with mixed types of tagsOrgad Shaneh, Jun 22, 2017
  2. Junio C HamanoJun 22, 2017

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.