commit | 51ff0f27bc6bfe83da7304ef9db77f3a2a4a47b0 | [log] [tgz] |
---|---|---|
author | Junio C Hamano <gitster@pobox.com> | Tue Mar 10 14:53:21 2015 +0100 |
committer | Junio C Hamano <gitster@pobox.com> | Tue Mar 10 15:17:48 2015 -0700 |
tree | 704f940bc954f30ffa1491803fef24278b2b94ab | |
parent | 4ab682e213d292fb921d21d25208a74ce47e2c19 [diff] |
log: decorate HEAD with branch name Currently, log decorations do not indicate which branch is checked out and whether HEAD is detached. When branch foo is checked out, change the "HEAD, foo" part of the decorations to "HEAD -> foo". This serves to indicate both ref decorations (helped by the spacing) as well as their relationshsip. As a consequence, "HEAD" without any " -> " denotes a detached HEAD now. Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>