author | Linus Torvalds <torvalds@linux-foundation.org> | |
Thu, 23 Jul 2009 19:13:48 +0000 (12:13 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 24 Jul 2009 04:56:07 +0000 (21:56 -0700) | ||
commit | 7e9ff00bbe1f437ff492a714758a4f7360feb22b | |
tree | 5df9e8223f0d8e5b7ac7ebca5d61ef47583fbbe9 | tree | snapshot |
parent | 191d1ac435c01e2a7acfb93fb9da8378da90214c | commit | diff |
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>
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 | diff | blob | history |