docs/git-tag: explain lightweight versus annotated tags
authorDaniele Segato <daniele.segato@gmail.com>
Fri, 26 Jul 2013 19:06:02 +0000 (15:06 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 29 Jul 2013 15:03:33 +0000 (08:03 -0700)
Stress the difference between the two with a suggestion on
when the user should use one in place of the other.

Signed-off-by: Daniele Segato <daniele.segato@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-tag.txt
index 6470cffd325f919d8daa6ddb2ef70cf79334c30f..6d01e6f77b4992cacc246c166650dbf5b17e618b 100644 (file)
@@ -42,6 +42,17 @@ committer identity for the current user is used to find the
 GnuPG key for signing.         The configuration variable `gpg.program`
 is used to specify custom GnuPG binary.
 
+Tag objects (created with `-a`, `s`, or `-u`) are called "annotated"
+tags; they contain a creation date, the tagger name and e-mail, a
+tagging message, and an optional GnuPG signature. Whereas a
+"lightweight" tag is simply a name for an object (usually a commit
+object).
+
+Annotated tags are meant for release while lightweight tags are meant
+for private or temporary object labels. For this reason, some git
+commands for naming objects (like `git describe`) will ignore
+lightweight tags by default.
+
 
 OPTIONS
 -------