* [BUG?] Detaching head at checked out point does not work.
@ 2007-05-12 17:21 Jan Hudec
2007-05-12 18:26 ` Junio C Hamano
0 siblings, 1 reply; 5+ messages in thread
From: Jan Hudec @ 2007-05-12 17:21 UTC (permalink / raw)
To: git
[-- Attachment #1: Type: text/plain, Size: 302 bytes --]
Hello,
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?
Regards,
Jan
--
Jan 'Bulb' Hudec <bulb@ucw.cz>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG?] Detaching head at checked out point does not work.
2007-05-12 17:21 [BUG?] Detaching head at checked out point does not work Jan Hudec
@ 2007-05-12 18:26 ` Junio C Hamano
2007-05-12 19:18 ` Jan Hudec
0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-05-12 18:26 UTC (permalink / raw)
To: Jan Hudec; +Cc: git
Jan Hudec <bulb@ucw.cz> writes:
> Hello,
>
> 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?
commit 3e0318a3613ae8e89dcb1fc39d909145e64287b9
Author: Junio C Hamano <junkio@cox.net>
Date: Thu Mar 29 01:02:50 2007 -0700
checkout: allow detaching to HEAD even when switching to the tip of a branch
You cannot currently checkout the tip of an existing branch
without moving to the branch.
This allows you to detach your HEAD and place it at such a
commit, with:
$ git checkout master^0
Signed-off-by: Junio C Hamano <junkio@cox.net>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG?] Detaching head at checked out point does not work.
2007-05-12 18:26 ` Junio C Hamano
@ 2007-05-12 19:18 ` Jan Hudec
2007-05-12 19:35 ` Junio C Hamano
0 siblings, 1 reply; 5+ messages in thread
From: Jan Hudec @ 2007-05-12 19:18 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 598 bytes --]
On Sat, May 12, 2007 at 11:26:53 -0700, Junio C Hamano wrote:
> Jan Hudec <bulb@ucw.cz> writes:
>
> > Hello,
> >
> > 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.
I apologise for not looking whether head has a fix.
--
Jan 'Bulb' Hudec <bulb@ucw.cz>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG?] Detaching head at checked out point does not work.
2007-05-12 19:18 ` Jan Hudec
@ 2007-05-12 19:35 ` Junio C Hamano
2007-05-12 20:18 ` Jan Hudec
0 siblings, 1 reply; 5+ messages in thread
From: Junio C Hamano @ 2007-05-12 19:35 UTC (permalink / raw)
To: Jan Hudec; +Cc: git
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [BUG?] Detaching head at checked out point does not work.
2007-05-12 19:35 ` Junio C Hamano
@ 2007-05-12 20:18 ` Jan Hudec
0 siblings, 0 replies; 5+ messages in thread
From: Jan Hudec @ 2007-05-12 20:18 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]
On Sat, May 12, 2007 at 12:35:22 -0700, Junio C Hamano wrote:
> 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>
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-05-12 20:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-12 17:21 [BUG?] Detaching head at checked out point does not work Jan Hudec
2007-05-12 18:26 ` Junio C Hamano
2007-05-12 19:18 ` Jan Hudec
2007-05-12 19:35 ` Junio C Hamano
2007-05-12 20:18 ` Jan Hudec
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).