Code

git branch: clean up detached branch handling
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 23 Jul 2009 19:13:48 +0000 (12:13 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 24 Jul 2009 04:56:07 +0000 (21:56 -0700)
commit7e9ff00bbe1f437ff492a714758a4f7360feb22b
tree5df9e8223f0d8e5b7ac7ebca5d61ef47583fbbe9
parent191d1ac435c01e2a7acfb93fb9da8378da90214c
git branch: clean up detached branch handling

Make the 'show detached branch info' a routine of its own.  And in the
process, avoid the object lookup that is unnecessary if the current
branch isn't detached.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-branch.c