diff options
author | Allan Caffee <allan.caffee@gmail.com> | 2009-04-22 15:52:13 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-22 17:48:42 -0700 |
commit | 36a31feae23ac45a130fa38b2934a74e4e7156b4 (patch) | |
tree | 849ab5e8909e31c2f8ad39130f4e6ca45b4bc82a | |
parent | 7b1d6269eebb0701c287d3ed8732384c115d2e1f (diff) | |
download | git-36a31feae23ac45a130fa38b2934a74e4e7156b4.tar.gz git-36a31feae23ac45a130fa38b2934a74e4e7156b4.tar.xz |
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>
-rw-r--r-- | graph.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -727,8 +727,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. |