git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Let --decorate show HEAD position
@ 2009-10-12  9:01 Thomas Rast
  2009-10-12 20:06 ` Thomas Rast
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Rast @ 2009-10-12  9:01 UTC (permalink / raw)
  To: git; +Cc: Junio C Hamano, René Scharfe

'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>
---
 log-tree.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/log-tree.c b/log-tree.c
index 1618f3c..f7d54f2 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);
 	}
 }
 
-- 
1.6.5.59.g76726.dirty

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-10-12 21:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12  9:01 [PATCH] Let --decorate show HEAD position Thomas Rast
2009-10-12 20:06 ` Thomas Rast
2009-10-12 20:34   ` [PATCH v2] " Thomas Rast
2009-10-12 21:05     ` Junio C Hamano
2009-10-12 21:11       ` Thomas Rast

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).