{"thread":{"id":"18955","subject":"checkout @{-1} bug/oddity","startedAt":"2009-04-19T15:37:40Z","lastAt":"2009-04-20T08:16:50Z","messageCount":3,"participants":["Adeodato Simó","Thomas Rast"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"111653","messageId":"20090419153740.GA12431@chistera.yi.org","threadId":"18955","inReplyTo":null,"subject":"checkout @{-1} bug/oddity","fromName":"Adeodato Simó","fromEmail":"dato@net.com.org.es","sentAt":"2009-04-19T15:37:40Z","receivedAt":"2009-04-19T15:37:40Z","isPatch":false,"sender":{"key":"dato@net.com.org.es","avatar":"https://gravatar.com/avatar/952ec7d5d5663eb8baf631b5c37f9c58480a881920dd5f8a2d3a71f969b72b53?d=mp&s=160"},"body":"In case this is worth fixing:\n\n  | % g co -b foo\n  | Switched to a new branch 'foo'\n  | \n  | % g co -\n  | Switched to branch 'master'\n  | \n  | % g co -b bar\n  | Switched to a new branch 'bar'\n  | \n  | % g co bar\n  | Already on 'bar'\n  | \n  | % g co -\n  | Already on 'bar'\n\nIn my opinion the last command should switch to master, as in, switching\nto the current branch should not lose the @{-1} history.\n\nThanks,\n\n-- \n- Are you sure we're good?\n- Always.\n        -- Rory and Lorelai\n"},{"id":"111660","messageId":"200904192236.32554.trast@student.ethz.ch","threadId":"18955","inReplyTo":"20090419153740.GA12431@chistera.yi.org","subject":"Re: checkout @{-1} bug/oddity","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2009-04-19T20:36:29Z","receivedAt":"2009-04-19T20:36:29Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Adeodato Simó wrote:\n>   | % g co bar\n>   | Already on 'bar'\n>   | \n>   | % g co -\n>   | Already on 'bar'\n> \n> In my opinion the last command should switch to master, as in, switching\n> to the current branch should not lose the @{-1} history.\n\nThis is by analogy with 'cd'.  Try 'cd .; cd -' in the shell.\n\nSee\n\n  http://article.gmane.org/gmane.comp.version-control.git/106583\n\nfor the original mention; I don't have the time to re-read the entire\nthread, but IIRC it was not discussed again.\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"},{"id":"111695","messageId":"20090420081650.GA6206@chistera.yi.org","threadId":"18955","inReplyTo":"200904192236.32554.trast@student.ethz.ch","subject":"Re: checkout @{-1} bug/oddity","fromName":"Adeodato Simó","fromEmail":"dato@net.com.org.es","sentAt":"2009-04-20T08:16:50Z","receivedAt":"2009-04-20T08:16:50Z","isPatch":false,"sender":{"key":"dato@net.com.org.es","avatar":"https://gravatar.com/avatar/952ec7d5d5663eb8baf631b5c37f9c58480a881920dd5f8a2d3a71f969b72b53?d=mp&s=160"},"body":"+ Thomas Rast (Sun, 19 Apr 2009 22:36:29 +0200):\n\n> This is by analogy with 'cd'.  Try 'cd .; cd -' in the shell.\n\n> See\n\n>   http://article.gmane.org/gmane.comp.version-control.git/106583\n\n> for the original mention; I don't have the time to re-read the entire\n> thread, but IIRC it was not discussed again.\n\nOk!, thanks for the explanations.\n\n-- \n- Are you sure we're good?\n- Always.\n        -- Rory and Lorelai\n"}]}