{"thread":{"id":"8116","subject":"[BUG?] Detaching head at checked out point does not work.","startedAt":"2007-05-12T17:21:05Z","lastAt":"2007-05-12T20:18:15Z","messageCount":5,"participants":["Jan Hudec","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"41942","messageId":"20070512172105.GB32764@efreet.light.src","threadId":"8116","inReplyTo":null,"subject":"[BUG?] Detaching head at checked out point does not work.","fromName":"Jan Hudec","fromEmail":"bulb@ucw.cz","sentAt":"2007-05-12T17:21:05Z","receivedAt":"2007-05-12T17:21:05Z","isPatch":false,"sender":{"key":"bulb@ucw.cz","avatar":null},"body":"Hello,\n\nI can correctly detach head by saying:\n\n  git checkout master^0\n\n(or git checkout master^{} or git checkout refs/heads/master), but NONE of\nthese work, if I currently have master checked out. Shouldn't it detach\nanyway?\n\nRegards,\n\nJan\n\n-- \n\t\t\t\t\t\t Jan 'Bulb' Hudec <bulb@ucw.cz>\n"},{"id":"41943","messageId":"7v7ird2902.fsf@assigned-by-dhcp.cox.net","threadId":"8116","inReplyTo":"20070512172105.GB32764@efreet.light.src","subject":"Re: [BUG?] Detaching head at checked out point does not work.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-05-12T18:26:53Z","receivedAt":"2007-05-12T18:26:53Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jan Hudec <bulb@ucw.cz> writes:\n\n> Hello,\n>\n> I can correctly detach head by saying:\n>\n>   git checkout master^0\n>\n> (or git checkout master^{} or git checkout refs/heads/master), but NONE of\n> these work, if I currently have master checked out. Shouldn't it detach\n> anyway?\n\nYes, and it does as far as I know.\n\nDo you have 3e0318a3?\n\ncommit 3e0318a3613ae8e89dcb1fc39d909145e64287b9\nAuthor: Junio C Hamano <junkio@cox.net>\nDate:   Thu Mar 29 01:02:50 2007 -0700\n\n    checkout: allow detaching to HEAD even when switching to the tip of a branch\n    \n    You cannot currently checkout the tip of an existing branch\n    without moving to the branch.\n    \n    This allows you to detach your HEAD and place it at such a\n    commit, with:\n    \n        $ git checkout master^0\n    \n    Signed-off-by: Junio C Hamano <junkio@cox.net>\n"},{"id":"41949","messageId":"20070512191833.GA8983@efreet.light.src","threadId":"8116","inReplyTo":"7v7ird2902.fsf@assigned-by-dhcp.cox.net","subject":"Re: [BUG?] Detaching head at checked out point does not work.","fromName":"Jan Hudec","fromEmail":"bulb@ucw.cz","sentAt":"2007-05-12T19:18:33Z","receivedAt":"2007-05-12T19:18:33Z","isPatch":false,"sender":{"key":"bulb@ucw.cz","avatar":null},"body":"On Sat, May 12, 2007 at 11:26:53 -0700, Junio C Hamano wrote:\n> Jan Hudec <bulb@ucw.cz> writes:\n> \n> > Hello,\n> >\n> > I can correctly detach head by saying:\n> >\n> >   git checkout master^0\n> >\n> > (or git checkout master^{} or git checkout refs/heads/master), but NONE of\n> > these work, if I currently have master checked out. Shouldn't it detach\n> > anyway?\n> \n> Yes, and it does as far as I know.\n> \n> Do you have 3e0318a3?\n\nIt does not seem to be in 1.5.1.4, so no, I don't.\n\nI apologise for not looking whether head has a fix.\n\n-- \n\t\t\t\t\t\t Jan 'Bulb' Hudec <bulb@ucw.cz>\n"},{"id":"41958","messageId":"7vd515ygw5.fsf@assigned-by-dhcp.cox.net","threadId":"8116","inReplyTo":"20070512191833.GA8983@efreet.light.src","subject":"Re: [BUG?] Detaching head at checked out point does not work.","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-05-12T19:35:22Z","receivedAt":"2007-05-12T19:35:22Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Jan Hudec <bulb@ucw.cz> writes:\n\n> On Sat, May 12, 2007 at 11:26:53 -0700, Junio C Hamano wrote:\n>> Jan Hudec <bulb@ucw.cz> writes:\n>>\n>> > I can correctly detach head by saying:\n>> >\n>> >   git checkout master^0\n>> >\n>> > (or git checkout master^{} or git checkout refs/heads/master), but NONE of\n>> > these work, if I currently have master checked out. Shouldn't it detach\n>> > anyway?\n>> \n>> Yes, and it does as far as I know.\n>> \n>> Do you have 3e0318a3?\n>\n> It does not seem to be in 1.5.1.4, so no, I don't.\n\nAs that commit is directly on top of v1.5.1, I think it may not\nhurt to cherry-pick that single commit to 'maint' for 1.5.1.5,\nalthough some may argue that it is not strictly a bugfix but a\nnew feature.\n"},{"id":"41964","messageId":"20070512201815.GC8983@efreet.light.src","threadId":"8116","inReplyTo":"7vd515ygw5.fsf@assigned-by-dhcp.cox.net","subject":"Re: [BUG?] Detaching head at checked out point does not work.","fromName":"Jan Hudec","fromEmail":"bulb@ucw.cz","sentAt":"2007-05-12T20:18:15Z","receivedAt":"2007-05-12T20:18:15Z","isPatch":false,"sender":{"key":"bulb@ucw.cz","avatar":null},"body":"On Sat, May 12, 2007 at 12:35:22 -0700, Junio C Hamano wrote:\n> Jan Hudec <bulb@ucw.cz> writes:\n> \n> > On Sat, May 12, 2007 at 11:26:53 -0700, Junio C Hamano wrote:\n> >> Jan Hudec <bulb@ucw.cz> writes:\n> >>\n> >> > I can correctly detach head by saying:\n> >> >\n> >> >   git checkout master^0\n> >> >\n> >> > (or git checkout master^{} or git checkout refs/heads/master), but NONE of\n> >> > these work, if I currently have master checked out. Shouldn't it detach\n> >> > anyway?\n> >> \n> >> Yes, and it does as far as I know.\n> >> \n> >> Do you have 3e0318a3?\n> >\n> > It does not seem to be in 1.5.1.4, so no, I don't.\n> \n> As that commit is directly on top of v1.5.1, I think it may not\n> hurt to cherry-pick that single commit to 'maint' for 1.5.1.5,\n> although some may argue that it is not strictly a bugfix but a\n> new feature.\n\nI would not call it a new feature, since it worked if I had something else\nthan master checked out. It is not a regression though and given that 1.5.2\nis getting closer I'm not sure it's worth bothering.\n\n-- \n\t\t\t\t\t\t Jan 'Bulb' Hudec <bulb@ucw.cz>\n"}]}