Re: [QUESTION] What is a tag for?
From: Petr Baudis <hidden>
Date: 2016-06-15 22:42:16
Hi, Dear diary, on Tue, Jan 17, 2006 at 11:52:24PM CET, I got a letter where Alex Bennee [off-list ref] said that...
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?
the simplest thing to do in Cogito if you just want to follow tags around is to cg-fetch periodically (that will get the changes to your local database, but will not check them out), and cg-seek around to whatever tag you want: $ cg-fetch $ cg-seek v2.6.16-rc1 $ cg-fetch ... no new tag ... $ cg-fetch ... still no new tag ... $ cg-fetch ... Linus, are you sleeping? ... $ cg-fetch $ cg-seek v2.6.16-rc2 ... -- Petr "Pasky" Baudis Stuff: http://pasky.or.cz/ Of the 3 great composers Mozart tells us what it's like to be human, Beethoven tells us what it's like to be Beethoven and Bach tells us what it's like to be the universe. -- Douglas Adams