threads / discuss / 21401

Headless tags don't have a follows or precedes?

Subject: Headless tags don't have a follows or precedes?

## tl;dr

3 messages between Oct 28, 2009 and Nov 2, 2009.

replies: 2people: 2as markdown or json

Tim Mazid· Oct 28, 2009, 11:36 UTC · lore
Hi all,

I've noticed that if I create a headless tag (one that doesn't have a branch, right?), when I click on that commit, it doesn't have precedes or follows information. Is this by design? Is there a work-around I can use without creating a branch there?

Thanks, Tim.

-- 
View this message in context: http://www.nabble.com/Headless-tags-don%27t-have-a-follows-or-precedes--tp26093136p26093136.html
Sent from the git mailing list archive at Nabble.com.
Dmitry Potapov· Nov 2, 2009, 13:09 UTC · re: Tim Mazid · lore

Re: Headless tags don't have a follows or precedes?

On Wed, Oct 28, 2009 at 04:36:59AM -0700, Tim Mazid wrote:
> 
> I've noticed that if I create a headless tag (one that doesn't have a
> branch, right?),

I have never heard tag being described as headless... A tag is just a pointer on some commit (annotated tag contains additional information such as creater, data, message), in any case, it has no direct relation to any branch.

> when I click on that commit, it doesn't have precedes or
> follows information. Is this by design?

Tags do not store any precedes or follows information, no matter how you created them, but visualization tools can look at the tree and display what was before some commit and what was after it. Without seeing your tree, it is impossible to tell whether gitk (or what you use?) displayed that correctly or not.

Dmitry
Tim Mazid· Nov 2, 2009, 13:16 UTC · re: Dmitry Potapov · lore

Re: Headless tags don't have a follows or precedes?

Dmitry Potapov wrote:
Show 12 quoted lines
> 
> I have never heard tag being described as headless... A tag is just a
> pointer on some commit (annotated tag contains additional information
> such as creater, data, message), in any case, it has no direct relation
> to any branch.
> 
> Tags do not store any precedes or follows information, no matter how you
> created them, but visualization tools can look at the tree and display
> what was before some commit and what was after it. Without seeing your
> tree, it is impossible to tell whether gitk (or what you use?) displayed
> that correctly or not.
> 

Well, not the tag itself, but the commit the tags points to. Same thing. Like you're always bothered to say "the commit that the tag v1 points to" rather than "the v1 tag". Also, see my post above.

-- 
View this message in context: http://n2.nabble.com/Headless-tags-don-t-have-a-follows-or-precedes-tp3926483p3931717.html
Sent from the git mailing list archive at Nabble.com.

← back to recent threads