- rev.diffopt.output_format |= DIFF_FORMAT_PATCH;
- setup_revisions(ARRAY_SIZE(rev_argv), (const char **)rev_argv, &rev,
- NULL);
+ rev.diffopt.output_format |= DIFF_FORMAT_DIFFSTAT |
+ DIFF_FORMAT_PATCH | DIFF_FORMAT_SUMMARY;
+ if (prefix)
+ rev.diffopt.stat_sep = fmt("(limited to '%s')\n\n", prefix);
+ setup_revisions(rev_argc, rev_argv, &rev, NULL);