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

Re: Lightweight tag ?

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 12, 2009, 19:52 UTC
Message-ID
<7vzlhwgv3e.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<496B59A3.2080507@drmicha.warpmail.net>
Michael J Gruber <git@drmicha.warpmail.net> writes:
Show 12 quoted lines
>> That's not what Junio said:
>> 
>>    Don't use explicit --tags blindly.  It says "no matter what kind of tag,
>>    transfer everything under refs/tags".  Otherwise you won't see a
>>    difference.
>> 
>> So I interpret this like don't use --tags otherwise lightweight and annoted tags
>> are the same.
>
> I don't see a difference between lightweight tags and tag objects
> regarding the question of automatic tag following, see my parenthetical
> request for correction (below) in case I'm wrong.
It was me who was confused on two points.
 (1) push does not do autofollow and you always have to be explicit
     (including saying "--tags" which is to push all refs/tags/*); I
     somehow thought the question was about fetch;
 (2) if you explicitly ask to fetch tags, there won't be any difference
     (which was my "don't say --tags explicitly because you won't see a
     difference if you did so").
     On the other hand, the autofollowing during the fetch originally
     followed only annotated tags (it was partly by design, so that people
     can use lightweight tags for local stuff without worrying about
     contaminating others' tag namespace with many of them) and I somehow
     thought this was still the case.
     But it is not the case anymore since 6c96c0f (git-fetch: follow
     lightweight tags as well, 2006-11-18).
So, sorry for the noise.
Previous: Michael J GruberNext: Francis Moreau
Message 7 of 8 in “Lightweight tag ?”
  1. Francis MoreauJan 11, 2009
  2. Junio C HamanoJan 11, 2009
  3. Francis MoreauJan 12, 2009
  4. Michael J GruberJan 12, 2009
  5. Francis MoreauJan 12, 2009
  6. Michael J GruberJan 12, 2009
  7. Junio C HamanoJan 12, 2009
  8. Francis MoreauJan 12, 2009

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.