@matheusbsbs / matheus-bagliano / commits / 36a31feae2
Fork 0

graph API: fix extra space during pre_commit_line state

An extra space is being inserted between the "commit" column and all of the successive edges. Remove this space. This regression was introduced by 427fc5b. Signed-off-by: Allan Caffee <allan.caffee@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Allan Caffee committed Apr 22, 2009 at 15:52 UTC 36a31feae23ac45a130fa38b2934a74e4e7156b4
1 file changed +2 -2
graph.c
+2 -2
@@ -727,8 +727,8 @@ static void graph_output_pre_commit_line(struct git_graph *graph,
727 if (col->commit == graph->commit) {
728 seen_this = 1;
729 strbuf_write_column(sb, col, '|');
730 - strbuf_addf(sb, " %*s", graph->expansion_row, "");
731 - chars_written += 2 + graph->expansion_row;
730 + strbuf_addf(sb, "%*s", graph->expansion_row, "");
731 + chars_written += 1 + graph->expansion_row;
732 } else if (seen_this && (graph->expansion_row == 0)) {
733 /*
734 * This is the first line of the pre-commit output.