Skip to content

Commit

Permalink
Merge branch 'hn/log-graph-color-octopus' into maint
Browse files Browse the repository at this point in the history
Coloring around octopus merges in "log --graph" output was screwy.

* hn/log-graph-color-octopus:
  graph: fix coloring around octopus merges
  • Loading branch information
Junio C Hamano committed Nov 7, 2013
2 parents 07c55c0 + 339c17b commit 46992b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,10 +801,10 @@ static int graph_draw_octopus_merge(struct git_graph *graph,
int num_dashes =
((graph->num_parents - dashless_commits) * 2) - 1;
for (i = 0; i < num_dashes; i++) {
col_num = (i / 2) + dashless_commits;
col_num = (i / 2) + dashless_commits + graph->commit_index;
strbuf_write_column(sb, &graph->new_columns[col_num], '-');
}
col_num = (i / 2) + dashless_commits;
col_num = (i / 2) + dashless_commits + graph->commit_index;
strbuf_write_column(sb, &graph->new_columns[col_num], '.');
return num_dashes + 1;
}
Expand Down

0 comments on commit 46992b5

Please sign in to comment.