branch: show more information when HEAD is detached