branch: show more information when HEAD is detached
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Wed, 13 Mar 2013 11:42:53 +0000 (18:42 +0700)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 Mar 2013 05:11:02 +0000 (22:11 -0700)
commitc8183cd2851965665655738fc399c44f546d5b79
tree7d8f2eb8b9c904ca8e7bbbc4360b412264a6c9a6
parentb397ea4863a143e97cb9da76c6c18cc555537d64
branch: show more information when HEAD is detached

This prints more helpful info when HEAD is detached: is it detached
because of bisect or rebase? What is the original branch name in those
cases? Is it detached because the user checks out a remote ref or a
tag (and which one)?

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
t/t3203-branch-output.sh
t/t6030-bisect-porcelain.sh