branch: name detached HEAD analogous to statusdetach-at-from
commita01bf3656358cc49de6c8cf9ccea7226c1430903
authorMichael J Gruber <git@drmicha.warpmail.net>
Sun, 22 Feb 2015 17:01:33 +0000 (22 18:01 +0100)
committerMichael J Gruber <git@drmicha.warpmail.net>
Wed, 11 Mar 2015 10:32:25 +0000 (11 11:32 +0100)
tree825d0e139c9d51bd5c1e3e8ea060b45d85a65051
parent7d6fd84ea94795fe9446b2edb750e9712be6131c
branch: name detached HEAD analogous to status

"git status" carefully names a detached HEAD "at" resp. "from" a rev or
ref depending on whether the detached HEAD has moved since. "git branch"
always uses "from", which can be confusing, because a status-aware user
would interpret this as moved detached HEAD.

Make "git branch" use the same logic and wording.
builtin/branch.c
t/t3203-branch-output.sh