Re: git-describe doesn't show the most recent tag
- From
Andreas Ericsson <ae@op5.se>
- Date
- Sep 28, 2008, 14:51 UTC
- Message-ID
- <48DF99F3.2070503@op5.se>
- In-Reply-To
- <ce513bcc0809280729p47cc3790nb77b3cae8b805221@mail.gmail.com>
Erez Zilber wrote:
Show 11 quoted lines
> On Sun, Sep 28, 2008 at 4:55 PM, Pierre Habouzit <madcoder@debian.org> wrote: >> On Sun, Sep 28, 2008 at 01:48:42PM +0000, Erez Zilber wrote: >>> Why is this happening? >> --tags >> Instead of using only the annotated tags, use any tag found in >> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >> .git/refs/tags. >> > > I'm not sure that I understand the difference between tags and annotated tags. >
An annotated tag is one created with "git tag -a" or "git tag -s". Other tags are considered "lightweight". They are supported for creating immutable quick-and-dirty savepoints for private use, while published tags are supposed to be annotated to give them some extra weight.
You can use lightweight tags like normal tags (ie, and publish them), but then some assumptions in git will not be correct and you need to tell it so.
Btw, the default update hook prevents lightweight (unannotated) tags from entering a repository you're pushing to, so this assumption is not something that's unique to just "describe".
-- Andreas Ericsson andreas.ericsson@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231