X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=graph.c;h=f8d7a5c0f6d17538a72b75e8de9dd092829a0262;hb=974e6e42f7a66b69bd684af4f637ab064acfdf92;hp=47bce05c987e04ac7a1617867ff9aab896330c47;hpb=eaf158f8bd7615562e1fa84711ea465f387a3c9d;p=git.git diff --git a/graph.c b/graph.c index 47bce05c9..f8d7a5c0f 100644 --- a/graph.c +++ b/graph.c @@ -35,7 +35,7 @@ static void graph_padding_line(struct git_graph *graph, struct strbuf *sb); * newline. A new graph line will not be printed after the final newline. * If the strbuf is empty, no output will be printed. * - * Since the first line will not include the graph ouput, the caller is + * Since the first line will not include the graph output, the caller is * responsible for printing this line's graph (perhaps via * graph_show_commit() or graph_show_oneline()) before calling * graph_show_strbuf(). @@ -713,8 +713,8 @@ static void graph_output_pre_commit_line(struct git_graph *graph, if (col->commit == graph->commit) { seen_this = 1; strbuf_write_column(sb, col, '|'); - strbuf_addf(sb, " %*s", graph->expansion_row, ""); - chars_written += 2 + graph->expansion_row; + strbuf_addf(sb, "%*s", graph->expansion_row, ""); + chars_written += 1 + graph->expansion_row; } else if (seen_this && (graph->expansion_row == 0)) { /* * This is the first line of the pre-commit output. @@ -838,7 +838,7 @@ static void graph_output_commit_line(struct git_graph *graph, struct strbuf *sb) graph_output_commit_char(graph, sb); chars_written++; - if (graph->num_parents > 3) + if (graph->num_parents > 2) chars_written += graph_draw_octopus_merge(graph, sb); } else if (seen_this && (graph->num_parents > 2)) {