{"thread":{"id":"5818","subject":"How to checkout a tag?","startedAt":"2006-10-05T10:47:49Z","lastAt":"2006-10-06T07:32:16Z","messageCount":5,"participants":["Jeff Garzik","Andy Whitcroft","Jakub Narebski"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"28238","messageId":"4524E2D5.3030907@garzik.org","threadId":"5818","inReplyTo":null,"subject":"How to checkout a tag?","fromName":"Jeff Garzik","fromEmail":"jeff@garzik.org","sentAt":"2006-10-05T10:47:49Z","receivedAt":"2006-10-05T10:47:49Z","isPatch":false,"sender":{"key":"jeff@garzik.org","avatar":null},"body":"\nSometimes I receive a kernel patch based off an older version of the \nkernel, for example a 2.6.18 patch when the current kernel is 2.6.19-rc1.\n\nI would like to create a branch starting at 2.6.18, merge the patch, and \nthen merge up to the current kernel.\n\nHow does one check out a tag, or create a branch based on a tag's \nstarting point?\n\n\tJeff\n"},{"id":"28239","messageId":"4524E72D.9030101@shadowen.org","threadId":"5818","inReplyTo":"4524E2D5.3030907@garzik.org","subject":"Re: How to checkout a tag?","fromName":"Andy Whitcroft","fromEmail":"apw@shadowen.org","sentAt":"2006-10-05T11:06:21Z","receivedAt":"2006-10-05T11:06:21Z","isPatch":false,"sender":{"key":"apw@shadowen.org","avatar":"https://gravatar.com/avatar/d3088262854661a913ef35cc40fedcc270142d4461791142bc1ea0b2a4e2e147?d=mp&s=160"},"body":"Jeff Garzik wrote:\n> \n> Sometimes I receive a kernel patch based off an older version of the\n> kernel, for example a 2.6.18 patch when the current kernel is 2.6.19-rc1.\n> \n> I would like to create a branch starting at 2.6.18, merge the patch, and\n> then merge up to the current kernel.\n> \n> How does one check out a tag, or create a branch based on a tag's\n> starting point?\n\nA tag is a ref like any other:\n\n\tgit checkout -b branchname tag\n\n-apw\n"},{"id":"28240","messageId":"4524E8C2.3060404@garzik.org","threadId":"5818","inReplyTo":"4524E72D.9030101@shadowen.org","subject":"Re: How to checkout a tag?","fromName":"Jeff Garzik","fromEmail":"jeff@garzik.org","sentAt":"2006-10-05T11:13:06Z","receivedAt":"2006-10-05T11:13:06Z","isPatch":false,"sender":{"key":"jeff@garzik.org","avatar":null},"body":"Andy Whitcroft wrote:\n> Jeff Garzik wrote:\n>> Sometimes I receive a kernel patch based off an older version of the\n>> kernel, for example a 2.6.18 patch when the current kernel is 2.6.19-rc1.\n>>\n>> I would like to create a branch starting at 2.6.18, merge the patch, and\n>> then merge up to the current kernel.\n>>\n>> How does one check out a tag, or create a branch based on a tag's\n>> starting point?\n> \n> A tag is a ref like any other:\n> \n> \tgit checkout -b branchname tag\n\nWeird.  No idea why that didn't work before, for me.\n\nThanks for the clue-hammer.\n\n\tJeff\n"},{"id":"28241","messageId":"4524EA18.3080704@shadowen.org","threadId":"5818","inReplyTo":"4524E8C2.3060404@garzik.org","subject":"Re: How to checkout a tag?","fromName":"Andy Whitcroft","fromEmail":"apw@shadowen.org","sentAt":"2006-10-05T11:18:48Z","receivedAt":"2006-10-05T11:18:48Z","isPatch":false,"sender":{"key":"apw@shadowen.org","avatar":"https://gravatar.com/avatar/d3088262854661a913ef35cc40fedcc270142d4461791142bc1ea0b2a4e2e147?d=mp&s=160"},"body":"Jeff Garzik wrote:\n> Andy Whitcroft wrote:\n>> Jeff Garzik wrote:\n>>> Sometimes I receive a kernel patch based off an older version of the\n>>> kernel, for example a 2.6.18 patch when the current kernel is\n>>> 2.6.19-rc1.\n>>>\n>>> I would like to create a branch starting at 2.6.18, merge the patch, and\n>>> then merge up to the current kernel.\n>>>\n>>> How does one check out a tag, or create a branch based on a tag's\n>>> starting point?\n>>\n>> A tag is a ref like any other:\n>>\n>>     git checkout -b branchname tag\n> \n> Weird.  No idea why that didn't work before, for me.\n> \n> Thanks for the clue-hammer.\n\nI think I've been in a place where I git fetched a tag and I ended up\nwith the objects, but not with an actual local tag for it.  Perhaps that\nhappened to you.\n\n-apw\n"},{"id":"28273","messageId":"eg50om$7rs$1@sea.gmane.org","threadId":"5818","inReplyTo":"4524E72D.9030101@shadowen.org","subject":"Re: How to checkout a tag?","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2006-10-06T07:32:16Z","receivedAt":"2006-10-06T07:32:16Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Andy Whitcroft wrote:\n\n> Jeff Garzik wrote:\n>> \n>> Sometimes I receive a kernel patch based off an older version of the\n>> kernel, for example a 2.6.18 patch when the current kernel is 2.6.19-rc1.\n>> \n>> I would like to create a branch starting at 2.6.18, merge the patch, and\n>> then merge up to the current kernel.\n>> \n>> How does one check out a tag, or create a branch based on a tag's\n>> starting point?\n> \n> A tag is a ref like any other:\n> \n>       git checkout -b branchname tag\n\nWhich is a shortcut for\n        git branch branchname tag\n        git checkout branchname\n\nYou cannot checkout a tag [object], because branch has to be able to move\nforward to the new commit when you commit changes,\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"}]}