* [PATCH] graph API: display uninteresting commits as '^' instead of '*'
@ 2009-08-19 23:06 Adam Simpkins
0 siblings, 0 replies; only message in thread
From: Adam Simpkins @ 2009-08-19 23:06 UTC (permalink / raw)
To: git; +Cc: Junio C Hamano
Using --graph and --show-all together now displays UNINTERESTING commits
using '^' characters instead of '*'.
Something like the following command will demonstrate the change:
git log --graph --show-all ^HEAD~2 HEAD
Signed-off-by: Adam Simpkins <simpkins@facebook.com>
---
graph.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/graph.c b/graph.c
index 6746d42..50b68a4 100644
--- a/graph.c
+++ b/graph.c
@@ -775,6 +775,14 @@ static void graph_output_commit_char(struct git_graph *graph, struct strbuf *sb)
}
/*
+ * For UNINTERESTING commits (displayed with --show-all), print '^'
+ */
+ if (graph->commit->object.flags & UNINTERESTING) {
+ strbuf_addch(sb, '^');
+ return;
+ }
+
+ /*
* If revs->left_right is set, print '<' for commits that
* come from the left side, and '>' for commits from the right
* side.
--
1.6.0.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-08-19 23:07 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-19 23:06 [PATCH] graph API: display uninteresting commits as '^' instead of '*' Adam Simpkins
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).