graph: fix lack of color in horizontal lines
commita1087c93677bc0304c98f14915b1843e470e4a55
authorDerrick Stolee <dstolee@microsoft.com>
Tue, 7 Jan 2020 21:27:02 +0000 (7 21:27 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 8 Jan 2020 17:37:18 +0000 (8 09:37 -0800)
treeb9c21c2068b0dd20c2068fc2bea15a39f4ca6c83
parent0d251c3291e4618325465a06186556b18be26adf
graph: fix lack of color in horizontal lines

In some cases, horizontal lines in rendered graphs can lose their
coloring. This is due to a use of graph_line_addch() instead of
graph_line_write_column(). Using a ternary operator to pick the
character is nice for compact code, but we actually need a column to
provide the color.

Add a test to t4215-log-skewed-merges.sh to prevent regression.

Reported-by: Jeff King <peff@peff.net>
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
graph.c
t/t4215-log-skewed-merges.sh