]> git.ipfire.org Git - thirdparty/git.git/blobdiff - builtin/log.c
log: show merge commit when --cc is given
[thirdparty/git.git] / builtin / log.c
index e37c27ab7efface402b59de46516c7e64f83691b..0cdd88971d64651a43f9fdb46235183912e1ad5c 100644 (file)
@@ -637,6 +637,10 @@ static void log_setup_revisions_tweak(struct rev_info *rev,
        /* Turn --cc/-c into -p --cc/-c when -p was not given */
        if (!rev->diffopt.output_format && rev->combine_merges)
                rev->diffopt.output_format = DIFF_FORMAT_PATCH;
+
+       /* Turn -m on when --cc/-c was given */
+       if (rev->combine_merges)
+               rev->ignore_merges = 0;
 }
 
 int cmd_log(int argc, const char **argv, const char *prefix)