git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] graph API: display uninteresting commits as '^' instead of '*'

From
ASAdam Simpkins <simpkins@facebook.com>
Date
Aug 19, 2009, 23:06 UTC
Message-ID
<20090819230646.GS8147@facebook.com>

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
Message 1 of 1 in “graph API: display uninteresting commits as '^' instead of '*'”
  1. graph API: display uninteresting commits as '^' instead of '*'Adam Simpkins, Aug 19, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.