summaryrefslogtreecommitdiff
path: root/log-tree.c
diff options
context:
space:
mode:
authorThomas Rast <trast@student.ethz.ch>2009-10-12 22:34:12 +0200
committerJunio C Hamano <gitster@pobox.com>2009-10-12 16:22:35 -0700
commit77abcbdc268d048b7a19af405607fb8d14e630ed (patch)
treecded0d495e9d54e2bad36c7af771e6e7c05358d3 /log-tree.c
parent17225c49d501a304a0ae9ff370ca5cc3ae4afe4d (diff)
downloadgit-77abcbdc268d048b7a19af405607fb8d14e630ed.tar.gz
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>
Diffstat (limited to 'log-tree.c')
-rw-r--r--log-tree.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/log-tree.c b/log-tree.c
index 1618f3c79a..f7d54f2f1b 100644
--- a/log-tree.c
+++ b/log-tree.c
@@ -43,6 +43,7 @@ void load_ref_decorations(int flags)
if (!loaded) {
loaded = 1;
for_each_ref(add_ref_decoration, &flags);
+ head_ref(add_ref_decoration, &flags);
}
}