Code

Let --decorate show HEAD position
authorThomas Rast <trast@student.ethz.ch>
Mon, 12 Oct 2009 20:34:12 +0000 (22:34 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Oct 2009 23:22:35 +0000 (16:22 -0700)
commit77abcbdc268d048b7a19af405607fb8d14e630ed
treecded0d495e9d54e2bad36c7af771e6e7c05358d3
parent17225c49d501a304a0ae9ff370ca5cc3ae4afe4d
Let --decorate show HEAD position

'git log --graph --oneline --decorate --all' is a useful way to get a
general overview of the repository state, similar to 'gitk --all'.
Let it indicate the position of HEAD by loading that ref too, so that
the --decorate code can see it.

Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c
t/t4013/diff.log_--decorate=full_--all
t/t4013/diff.log_--decorate_--all