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

Re: [PATCHv3] git-tag man: when to use lightweight or annotated tags

From
Marc Branchaud <marcnarc@xiplink.com>
Date
Jul 26, 2013, 21:13 UTC
Message-ID
<51F2E676.6080404@xiplink.com>
In-Reply-To
<20130726190602.GC29799@sigill.intra.peff.net>
On 13-07-26 03:06 PM, Jeff King wrote:
Show 15 quoted lines
> On Fri, Jul 26, 2013 at 07:33:01PM +0200, Daniele Segato wrote:
> 
>> stress the difference between the two with suggestion on when the user
>> should use one in place of the other.
>>
>> Signed-off-by: Daniele Segato <daniele.segato@gmail.com>
> 
> The intent of your patch seems reasonable to me. There are a few minor
> language and typographical mistakes, and the patch itself is
> whitespace-damaged.
> 
> I also do not know that it is accurate to say "most git commands ignore
> lightweight tags". It is really only "naming" ones like "git describe".
> 
> Here is a re-send of your patch with the fixups I would recommend.
I'm happy with Peff's version.
Reviewed-by: Marc Branchaud <marcnarc@xiplink.com>
(Daniele, don't feel put off because Jonathan & I are accepting Peff's text.
 If you think it still needs improving please speak up!)
		M.
Show 36 quoted lines
> -- >8 --
> From: Daniele Segato <daniele.segato@gmail.com>
> Subject: [PATCH] docs/git-tag: explain lightweight versus annotated tags
> 
> 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>
> ---
>  Documentation/git-tag.txt | 11 +++++++++++
>  1 file changed, 11 insertions(+)
> 
> diff --git a/Documentation/git-tag.txt b/Documentation/git-tag.txt
> index 22894cb..c418c44 100644
> --- a/Documentation/git-tag.txt
> +++ b/Documentation/git-tag.txt
> @@ -42,6 +42,17 @@ is used to specify custom GnuPG binary.
>  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
>  -------
> 
Previous: Daniele SegatoNext: Junio C Hamano
Message 14 of 23 in “git tag usability issue: Lightweight vs Annotated confusion for the end user (ex. git describe default)”
  1. Daniele SegatoJul 24, 2013
  2. Junio C HamanoJul 24, 2013
  3. git-tag man: when to use lightweight or annotated tagsDaniele Segato, Jul 25, 2013
  4. Marc BranchaudJul 25, 2013
  5. Daniele SegatoJul 26, 2013
  6. Daniele SegatoJul 26, 2013
  7. Marc BranchaudJul 26, 2013
  8. Daniele SegatoJul 26, 2013
  9. Daniele SegatoJul 26, 2013
  10. Jeff KingJul 26, 2013
  11. Jonathan NiederJul 26, 2013
  12. Daniele SegatoJul 29, 2013
  13. Daniele SegatoAug 7, 2013
  14. Marc BranchaudJul 26, 2013
  15. Junio C HamanoJul 29, 2013
  16. Daniele SegatoJul 29, 2013
  17. Daniele SegatoJul 27, 2013
  18. Philip OakleyJul 27, 2013
  19. Stefan BellerJul 27, 2013
  20. Daniele SegatoJul 29, 2013
  21. Marc BranchaudJul 26, 2013
  22. Daniele SegatoJul 29, 2013
  23. Daniele SegatoJul 25, 2013

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.