Revision 51ff0f27bc6bfe83da7304ef9db77f3a2a4a47b0 authored by Junio C Hamano on 10 March 2015, 13:53:21 UTC, committed by Junio C Hamano on 10 March 2015, 22:17:48 UTC
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>
1 parent 4ab682e
History
File Mode Size
.gitignore -rw-r--r-- 14 bytes
api-allocation-growing.txt -rw-r--r-- 1.1 KB
api-argv-array.txt -rw-r--r-- 1.9 KB
api-builtin.txt -rw-r--r-- 2.1 KB
api-config.txt -rw-r--r-- 12.8 KB
api-credentials.txt -rw-r--r-- 9.1 KB
api-decorate.txt -rw-r--r-- 60 bytes
api-diff.txt -rw-r--r-- 5.5 KB
api-directory-listing.txt -rw-r--r-- 2.7 KB
api-gitattributes.txt -rw-r--r-- 3.6 KB
api-grep.txt -rw-r--r-- 76 bytes
api-hashmap.txt -rw-r--r-- 9.1 KB
api-history-graph.txt -rw-r--r-- 5.9 KB
api-in-core-index.txt -rw-r--r-- 457 bytes
api-index-skel.txt -rw-r--r-- 431 bytes
api-index.sh -rwxr-xr-x 611 bytes
api-lockfile.txt -rw-r--r-- 8.0 KB
api-merge.txt -rw-r--r-- 3.3 KB
api-object-access.txt -rw-r--r-- 342 bytes
api-parse-options.txt -rw-r--r-- 9.5 KB
api-quote.txt -rw-r--r-- 145 bytes
api-ref-iteration.txt -rw-r--r-- 2.4 KB
api-remote.txt -rw-r--r-- 3.3 KB
api-revision-walking.txt -rw-r--r-- 2.4 KB
api-run-command.txt -rw-r--r-- 8.8 KB
api-setup.txt -rw-r--r-- 1.7 KB
api-sha1-array.txt -rw-r--r-- 2.3 KB
api-sigchain.txt -rw-r--r-- 1.3 KB
api-strbuf.txt -rw-r--r-- 10.9 KB
api-string-list.txt -rw-r--r-- 7.1 KB
api-trace.txt -rw-r--r-- 2.7 KB
api-tree-walking.txt -rw-r--r-- 4.3 KB
api-xdiff-interface.txt -rw-r--r-- 139 bytes
bitmap-format.txt -rw-r--r-- 5.4 KB
http-protocol.txt -rw-r--r-- 16.9 KB
index-format.txt -rw-r--r-- 7.9 KB
pack-format.txt -rw-r--r-- 5.5 KB
pack-heuristics.txt -rw-r--r-- 17.6 KB
pack-protocol.txt -rw-r--r-- 22.5 KB
protocol-capabilities.txt -rw-r--r-- 10.3 KB
protocol-common.txt -rw-r--r-- 2.7 KB
racy-git.txt -rw-r--r-- 8.6 KB
send-pack-pipeline.txt -rw-r--r-- 1.9 KB
shallow.txt -rw-r--r-- 2.3 KB
trivial-merge.txt -rw-r--r-- 4.2 KB

back to top