From: J. Bruce Fields Date: Wed, 10 Jan 2007 01:03:12 GMT Subject: Re: [PATCH] Detached HEAD (experimental) Message-ID: <20070110010312.GA25265@fieldses.org> In-Reply-To: <20070110003433.GH30023@spearce.org> 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.