Skip to content

Commit 2effe71

Browse files
author
Junio C Hamano
committed
Merge branch 'jc/cc-stat'
* jc/cc-stat: Fix "git show --stat"
2 parents cdb6350 + 96ab4f4 commit 2effe71

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

revision.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
789789
}
790790
if (revs->combine_merges) {
791791
revs->ignore_merges = 0;
792-
if (revs->dense_combined_merges)
792+
if (revs->dense_combined_merges &&
793+
(revs->diffopt.output_format != DIFF_FORMAT_DIFFSTAT))
793794
revs->diffopt.output_format = DIFF_FORMAT_PATCH;
794795
}
795796
revs->diffopt.abbrev = revs->abbrev;

0 commit comments

Comments
 (0)