branch: show targets of deleted symrefs, not sha1s
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Thu, 18 Oct 2012 12:08:03 +0000 (14:08 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Oct 2012 21:36:17 +0000 (14:36 -0700)
commit13baa9fe866f63311af5a5ee318beddb16eb5df4
treecc50b33e17a4ed48860c96fb7757a417e3ff34d0
parent0fe700e311f2d7e55eb23fe941fab9155d7f91df
branch: show targets of deleted symrefs, not sha1s

git branch reports the abbreviated hash of the head commit of
a deleted branch to make it easier for a user to undo the
operation.  For symref branches this doesn't help.  Print the
symref target instead for them.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/branch.c
t/t3200-branch.sh