Code

git-branch: show detached HEAD
authorLars Hjemli <hjemli@gmail.com>
Wed, 3 Jan 2007 20:10:10 +0000 (21:10 +0100)
committerJunio C Hamano <junkio@cox.net>
Mon, 8 Jan 2007 11:02:11 +0000 (03:02 -0800)
commit0016a48251abefed11efc919703d980a21c95f2c
tree226a1afc2ed4677580b75762855239b5a7c5e2ff
parentbda324cf6158672b91a478036731d332c1a14cac
git-branch: show detached HEAD

This makes git-branch show a detached HEAD as '* (no branch)'.

Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-branch.c