Skip to content

Commit 36a31fe

Browse files
allancaffeegitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7b1d626 commit 36a31fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graph.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -727,8 +727,8 @@ static void graph_output_pre_commit_line(struct git_graph *graph,
727727
if (col->commit == graph->commit) {
728728
seen_this = 1;
729729
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;
732732
} else if (seen_this && (graph->expansion_row == 0)) {
733733
/*
734734
* This is the first line of the pre-commit output.

0 commit comments

Comments
 (0)