Re: [PATCH] Detached HEAD (experimental)
- From
- Andy Parkins <andyparkins@gmail.com>
- Date
- Jan 10, 2007, 09:04 UTC
- Message-ID
- <200701100904.32077.andyparkins@gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0701091539050.3594@woody.osdl.org>
On Tuesday 2007 January 09 23:46, Linus Torvalds wrote:
> I would suggest a solution: > > - git checkout will refuse to switch AWAY from a detached head unless the > SHA1 of the detached head exactly matches some other branch.
If the detached HEAD matches another branch what did we need a detached HEAD for in the first place?
Seems that this check will in practice always be true. A detached HEAD by definition doesn't match some other branch.
Have I misunderstood? Perhaps you meant the detached HEAD is /on/ some other branch?
Andy
-- Dr Andy Parkins, M Eng (hons), MIEE andyparkins@gmail.com