log --format: teach %C(auto,black) to respect color config
[gitweb.git] / log-tree.c
index c894930c1863bfcf33a01b2d98c48478aa874186..7185bd65f2540d8c2c929d4f078e280f4d869712 100644 (file)
@@ -660,6 +660,7 @@ void show_log(struct rev_info *opt)
        ctx.preserve_subject = opt->preserve_subject;
        ctx.reflog_info = opt->reflog_info;
        ctx.fmt = opt->commit_format;
+       ctx.color = opt->diffopt.use_color;
        pretty_print_commit(&ctx, commit, &msgbuf);
 
        if (opt->add_signoff)