{"thread":{"id":"9409","subject":"typo in http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html","startedAt":"2007-08-06T14:05:02Z","lastAt":"2007-08-06T14:26:00Z","messageCount":2,"participants":["Toralf Förster","Julian Phillips"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"50020","messageId":"46B72A8E.3040602@gmx.de","threadId":"9409","inReplyTo":null,"subject":"typo in http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html","fromName":"Toralf Förster","fromEmail":"toralf.foerster@gmx.de","sentAt":"2007-08-06T14:05:02Z","receivedAt":"2007-08-06T14:05:02Z","isPatch":false,"sender":{"key":"toralf.foerster@gmx.de","avatar":null},"body":"Hello,\n\nshouldn't \" at the tip of one of your branches\" better written as \" at \nthe top of one of your branches\".\n\nBTW one question: I run a simple test unit (only build tests) against \nthe latest git tree, which is updated with \"git pull\" once a day.\n\nIf I want to make some tests with a previous kernel version - say \nv2.6.20 and switch then back to HEAD to continue with my common test \nsuite, would the following be ok : ?\n\n$> git checkout v2.6.20\n$> <do something useful with it>\n$> git reset\n\nThanks for an answer\n\n--\nToralf\n"},{"id":"50022","messageId":"Pine.LNX.4.64.0708061520490.29052@reaper.quantumfyre.co.uk","threadId":"9409","inReplyTo":"46B72A8E.3040602@gmx.de","subject":"Re: typo in http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html","fromName":"Julian Phillips","fromEmail":"julian@quantumfyre.co.uk","sentAt":"2007-08-06T14:26:00Z","receivedAt":"2007-08-06T14:26:00Z","isPatch":false,"sender":{"key":"julian@quantumfyre.co.uk","avatar":"https://avatars.githubusercontent.com/u/948888?v=4"},"body":"On Mon, 6 Aug 2007, Toralf Förster wrote:\n\n> Hello,\n>\n> shouldn't \" at the tip of one of your branches\" better written as \" at the \n> top of one of your branches\".\n>\n> BTW one question: I run a simple test unit (only build tests) against the \n> latest git tree, which is updated with \"git pull\" once a day.\n>\n> If I want to make some tests with a previous kernel version - say v2.6.20 and \n> switch then back to HEAD to continue with my common test suite, would the \n> following be ok : ?\n>\n> $> git checkout v2.6.20\n\nThis will change HEAD to be a detached checkout of v2.6.20\n\n> $> <do something useful with it>\n> $> git reset\n\nThis will not change HEAD back.\n\nsomething like this perhaps?\n\n$> MY_HEAD=$(git symbolic-ref HEAD)\n$> git checkout v2.6.20\n$> <...>\n$> git reset --hard $MY_HEAD\n\nno doubt there is a more cunning method ...\n\n-- \nJulian\n\n  ---\n<SpanKY> hmm, blade iii comes out the 8th\n<SpanKY> we could catch a flick and have anal sex in the back\n<jforman> holy jesus, /me cancels his plans"}]}