OSDN Git Service

Merge branch 'jk/reflog-walk' into maint
[git-core/git.git] / builtin / rev-list.c
index 53a746d..e8f5048 100644 (file)
@@ -123,6 +123,7 @@ static void show_commit(struct commit *commit, void *data)
                ctx.date_mode_explicit = revs->date_mode_explicit;
                ctx.fmt = revs->commit_format;
                ctx.output_encoding = get_log_output_encoding();
+               ctx.color = revs->diffopt.use_color;
                pretty_print_commit(&ctx, commit, &buf);
                if (buf.len) {
                        if (revs->commit_format != CMIT_FMT_ONELINE)