Subject: Re: [PATCH] Detached HEAD (experimental)

From: "J. Bruce Fields" <[email-masked]>
Date: Tue, 9 Jan 2007 20:03:12 -0500

On Tue, Jan 09, 2007 at 07:34:33PM -0500, Shawn O. Pearce wrote:
> Unfortunately .git/logs/HEAD wouldn't be created by default as its
> not under refs/heads or refs/remotes.  Though it could be made to be
> on by default, in which case it would only log changes while HEAD
> is detached.  If HEAD is attached to a branch then .git/logs/HEAD
> wouldn't be appended to (or even created), while the branch's own
> log is still appended to.

That would also provide all the needed "safety valve" on git checkout,
wouldn't it?  Since you could always recover from

	git checkout v1.4.0
	git commit -m -a 'some changes'
	git checkout 41.2.0

by looking back through the reflog for HEAD.

--b.