X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=graph.c;h=7358416a72e855b406e026036cf61bcdd15e5142;hb=6c65b5ea439165512d128e18829b67688ddab9cc;hp=556834a973863fa2bc3f9f8d02fe16cabc4359d8;hpb=f1c9626105d5e4962a5ccaa4620114d03f32ad02;p=git.git diff --git a/graph.c b/graph.c index 556834a97..7358416a7 100644 --- a/graph.c +++ b/graph.c @@ -347,7 +347,7 @@ static struct commit_list *first_interesting_parent(struct git_graph *graph) static unsigned short graph_get_current_column_color(const struct git_graph *graph) { - if (graph->revs->diffopt.use_color <= 0) + if (!want_color(graph->revs->diffopt.use_color)) return column_colors_max; return graph->default_column_color; }