Merge branch 'nd/graph-width-padded' into maint
[git/git.git] / pretty.c
index 1c67b23..8d18247 100644 (file)
--- a/pretty.c
+++ b/pretty.c
@@ -1069,7 +1069,7 @@ static size_t format_commit_one(struct strbuf *sb, /* in UTF-8 */
        switch (placeholder[0]) {
        case 'C':
                if (starts_with(placeholder + 1, "(auto)")) {
-                       c->auto_color = 1;
+                       c->auto_color = want_color(c->pretty_ctx->color);
                        return 7; /* consumed 7 bytes, "C(auto)" */
                } else {
                        int ret = parse_color(sb, placeholder, c);