Re: Lightweight tag ?
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:58
Michael J Gruber [off-list ref] writes:
quoted
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.