git checkout's reflog: even when detaching the HEAD, say from where
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Fri, 23 Nov 2007 00:20:35 +0000 (00:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Thu, 29 Nov 2007 00:20:13 +0000 (16:20 -0800)
commitc67bbc55f0310de79647457b1fa2a5d3b1746488
tree6162ae4151336e152266c36db60ea2f9d468230e
parent9e42d6a1c53dadd409fab11cc76e0eba9ec15365
git checkout's reflog: even when detaching the HEAD, say from where

When checking out another ref, the reflogs already record from which
branch you switched.  Do that also when switching to a detached HEAD.

While at it, record also when coming _from_ a detached HEAD.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-checkout.sh