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

[QUESTION] What is a tag for?

From
ABAlex Bennee <kernel-hacker@bennee.com>
Date
Jan 17, 2006, 22:52 UTC
Message-ID
<1137538344.9104.34.camel@malory>
Hi,

So I want to track Linus's 2.6 git tree as well as do a little small time hacking. I'm not brave enough to sit on the very bleeding edge and build what ever happens to be at the "HEAD" of the tree. However when a kernel releases I'd like to build *that* kernel.

I keep thinking of tags like labels in the old convetional SCM case. Is this correct? I can see once I've done my update (fetch/cogito what ever) that these tags apear in my local tree:

22:42 alex@malory [linux-2.6] >cat .git/refs/tags/v2.6.16-rc1 f3bcf72eb85aba88a7bd0a6116dd0b5418590dbe

So what do I do with them now? Are they only for branch points? Is the only way to know I'm building 2.6.16-rc1 to branch from it as described in git-branch, even if I'm not planning on doing any development?

Is this part of the concept that branches are cheap and you should feel free to create and throw them away at will?

I look forward to your elucidation and the ah! moment that finally gets my head around git ;-)

Cheers,
--
Alex, homepage: http://www.bennee.com/~alex/
Zoe: "So.. Trap?" Mal: "Trap." Zoe: "We goin' in?" Mal: "Ain't nothin'
but a few hours out." Wash: "But, remember the part where it's a trap?"
Next: Petr Baudis
Message 1 of 12 in “[QUESTION] What is a tag for?”
  1. Alex BenneeJan 17, 2006
  2. Petr BaudisJan 17, 2006
  3. Junio C HamanoJan 18, 2006
  4. Linus TorvaldsJan 18, 2006
  5. Junio C HamanoJan 18, 2006
  6. Petr BaudisJan 18, 2006
  7. Petr BaudisJan 18, 2006
  8. Andreas EricssonJan 18, 2006
  9. Junio C HamanoJan 18, 2006
  10. Andreas EricssonJan 18, 2006
  11. Junio C HamanoJan 25, 2006
  12. Andreas EricssonJan 25, 2006

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.