Merge branch 'mg/detached-head-report'
commit38f6ae90de2cedca6a4aaed13ecac365ffa9672c
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2015 20:11:46 +0000 (20 13:11 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2015 20:11:46 +0000 (20 13:11 -0700)
treebd84ae2639dd8aa3701c8577e73f177e760a29ea
parentd6c988ddfacd49edf1eb16084af36062d8eb7121
parent4b06318664638d306cad920fd86eb63b69739310
Merge branch 'mg/detached-head-report'

"git branch" on a detached HEAD always said "(detached from xyz)",
even when "git status" would report "detached at xyz".  The HEAD is
actually at xyz and haven't been moved since it was detached in
such a case, but the user cannot read what the current value of
HEAD is when "detached from" is used.

* mg/detached-head-report:
  branch: name detached HEAD analogous to status
  wt-status: refactor detached HEAD analysis
builtin/branch.c
wt-status.c