Re: Lightweight tag ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michael J Gruber <git@xxxxxxxxxxxxxxxxxxxx> writes:

>> 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.


--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux