tags:

views:

181

answers:

1

Every git tutorial you look into has a clear opinion about tags: One should always use annotated tags, one of the reasons being that they are used by git describe.

However, I don’t see anything bad in using git describe --tags which also takes the unannotated tags as a reference point. Is there anything else that’s considered bad about unannotated tags?

I’m asking because I’ve just finished converting a SVN project to git. I was actually thinking about providing the tags with an annotation but what should I’ve put there if not an alarmingly redundant ‘Tagging release 1.5 for our project’ message (which had been used as an SVN comment already anyway)?

Annotated tags seem like a nice thing to me (you can tag things as a different author and might give a short description), but should you really use them even in cases when you don’t have anything meaningful to say apart from the original commit message?

or

In which situations are unannotated tags not frowned upon?

Edit: I’m not talking about signed annotated tags (I understand the advantage of having signed tags in some situations); I’m only concerned about the difference between unannotated and unsigned annotated.

Edit 2: Appending another question to broaden the scope somewhat and maybe get some insightful answers about the real-life best-bractices

When do you use unannotated tags and do you feel bad about it when you do?

+2  A: 

An annotated tag is actually a tag object. It has an author, a description, a timestamp and points to a commit.

A lightweight tag points to a commit and contains no other information. It's got more in common with branching than with tagging.

Dustin
True. But my question is not what annotated tags *are*. I’m wondering if I should use them even though both the description and the author are redundant.
Debilski
I don't believe the description and author are redundant. The person who tags a release isn't necessarily the person who wrote the code (who also, isn't necessarily the person who committed the code). I've never found a good use for lightweight tags, myself.
Dustin