{"thread":{"id":"20667","subject":"[PATCH] graph API: display uninteresting commits as '^' instead of '*'","startedAt":"2009-08-19T23:06:46Z","lastAt":"2009-08-19T23:06:46Z","messageCount":1,"participants":["Adam Simpkins"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"121296","messageId":"20090819230646.GS8147@facebook.com","threadId":"20667","inReplyTo":null,"subject":"[PATCH] graph API: display uninteresting commits as '^' instead of '*'","fromName":"Adam Simpkins","fromEmail":"simpkins@facebook.com","sentAt":"2009-08-19T23:06:46Z","receivedAt":"2009-08-19T23:06:46Z","isPatch":true,"sender":{"key":"simpkins@facebook.com","avatar":null},"body":"Using --graph and --show-all together now displays UNINTERESTING commits\nusing '^' characters instead of '*'.\n\nSomething like the following command will demonstrate the change:\n\n   git log --graph --show-all ^HEAD~2 HEAD\n\nSigned-off-by: Adam Simpkins <simpkins@facebook.com>\n---\n graph.c |    8 ++++++++\n 1 files changed, 8 insertions(+), 0 deletions(-)\n\ndiff --git a/graph.c b/graph.c\nindex 6746d42..50b68a4 100644\n--- a/graph.c\n+++ b/graph.c\n@@ -775,6 +775,14 @@ static void graph_output_commit_char(struct git_graph *graph, struct strbuf *sb)\n \t}\n \n \t/*\n+\t * For UNINTERESTING commits (displayed with --show-all), print '^'\n+\t */\n+\tif (graph->commit->object.flags & UNINTERESTING) {\n+\t\tstrbuf_addch(sb, '^');\n+\t\treturn;\n+\t}\n+\n+\t/*\n \t * If revs->left_right is set, print '<' for commits that\n \t * come from the left side, and '>' for commits from the right\n \t * side.\n-- \n1.6.0.4\n"}]}