Fix "git log --stat": make sure to set recursive with --stat.
Just like "patch" format always needs recursive, "diffstat" format does not make sense without setting recursive. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@ -791,8 +791,6 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
|
||||
if (revs->dense_combined_merges)
|
||||
revs->diffopt.output_format = DIFF_FORMAT_PATCH;
|
||||
}
|
||||
if (revs->diffopt.output_format == DIFF_FORMAT_PATCH)
|
||||
revs->diffopt.recursive = 1;
|
||||
revs->diffopt.abbrev = revs->abbrev;
|
||||
diff_setup_done(&revs->diffopt);
|
||||
|
||||
|
Reference in New Issue
Block a user