Skip to content

Commit 96ab4f4

Browse files
author
Junio C Hamano
committed
Fix "git show --stat"
Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent e64961b commit 96ab4f4

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)