X-Git-Url: http://git.ipfire.org/?p=thirdparty%2Fgit.git;a=blobdiff_plain;f=graph.c;h=ef2e24e85a41dc97cf00bb7b19985ec01b8662bf;hp=f1a63c2241a30cce0141b87b5e8005b1a899a8ef;hb=cea13a8d685802389fad5b1ffce3af38175a8a01;hpb=06cfa8a8589740b9dd4820ad1c2eff4b3d968de7 diff --git a/graph.c b/graph.c index f1a63c2241..ef2e24e85a 100644 --- a/graph.c +++ b/graph.c @@ -798,22 +798,9 @@ static void graph_output_commit_char(struct git_graph *graph, struct strbuf *sb) } /* - * If revs->left_right is set, print '<' for commits that - * come from the left side, and '>' for commits from the right - * side. + * get_revision_mark() handles all other cases without assert() */ - if (graph->revs && graph->revs->left_right) { - if (graph->commit->object.flags & SYMMETRIC_LEFT) - strbuf_addch(sb, '<'); - else - strbuf_addch(sb, '>'); - return; - } - - /* - * Print '*' in all other cases - */ - strbuf_addch(sb, '*'); + strbuf_addstr(sb, get_revision_mark(graph->revs, graph->commit)); } /*