From: Adam Simpkins Date: Thu, 5 Jun 2008 09:28:13 +0000 (-0700) Subject: git log --graph: print '*' for all commits, including merges X-Git-Tag: v1.5.6-rc2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=03300c0;p=git.git git log --graph: print '*' for all commits, including merges Previously, merge commits were printed with 'M' instead of '*'. This had the potential to confuse users when not all parents of the merge commit were included in the log output. As Junio has pointed out, merge commits can almost always be easily identified from the log message, anyway. Signed-off-by: Adam Simpkins Signed-off-by: Junio C Hamano --- diff --git a/graph.c b/graph.c index 283b13792..e2633f837 100644 --- a/graph.c +++ b/graph.c @@ -679,20 +679,6 @@ static void graph_output_commit_char(struct git_graph *graph, struct strbuf *sb) return; } - /* - * Print 'M' for merge commits - * - * Note that we don't check graph->num_parents to determine if the - * commit is a merge, since that only tracks the number of - * "interesting" parents. We want to print 'M' for merge commits - * even if they have less than 2 interesting parents. - */ - if (graph->commit->parents != NULL && - graph->commit->parents->next != NULL) { - strbuf_addch(sb, 'M'); - return; - } - /* * Print '*' in all other cases */