git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG?] Detaching head at checked out point does not work.

From
JHJan Hudec <bulb@ucw.cz>
Date
May 12, 2007, 20:18 UTC
Message-ID
<20070512201815.GC8983@efreet.light.src>
In-Reply-To
<7vd515ygw5.fsf@assigned-by-dhcp.cox.net>
On Sat, May 12, 2007 at 12:35:22 -0700, Junio C Hamano wrote:
Show 23 quoted lines
> Jan Hudec <bulb@ucw.cz> writes:
> 
> > On Sat, May 12, 2007 at 11:26:53 -0700, Junio C Hamano wrote:
> >> Jan Hudec <bulb@ucw.cz> writes:
> >>
> >> > I can correctly detach head by saying:
> >> >
> >> >   git checkout master^0
> >> >
> >> > (or git checkout master^{} or git checkout refs/heads/master), but NONE of
> >> > these work, if I currently have master checked out. Shouldn't it detach
> >> > anyway?
> >> 
> >> Yes, and it does as far as I know.
> >> 
> >> Do you have 3e0318a3?
> >
> > It does not seem to be in 1.5.1.4, so no, I don't.
> 
> As that commit is directly on top of v1.5.1, I think it may not
> hurt to cherry-pick that single commit to 'maint' for 1.5.1.5,
> although some may argue that it is not strictly a bugfix but a
> new feature.

I would not call it a new feature, since it worked if I had something else than master checked out. It is not a regression though and given that 1.5.2 is getting closer I'm not sure it's worth bothering.

-- 
						 Jan 'Bulb' Hudec <bulb@ucw.cz>
Previous: Junio C Hamano
Message 5 of 5 in “[BUG?] Detaching head at checked out point does not work.”
  1. Jan HudecMay 12, 2007
  2. Junio C HamanoMay 12, 2007
  3. Jan HudecMay 12, 2007
  4. Junio C HamanoMay 12, 2007
  5. Jan HudecMay 12, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.