X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=diff-tree.c;h=d1c61c8515cd531f1304b2b3cd0dea6a975c26c2;hb=757319309ac26d136d6f21a40c81fb53073c5dc9;hp=2b79dd0a68c30343d74e3e82c056fef6a355e82e;hpb=02376287ffd8b37ea7622fd4b61d654855112e75;p=git.git diff --git a/diff-tree.c b/diff-tree.c index 2b79dd0a..d1c61c85 100644 --- a/diff-tree.c +++ b/diff-tree.c @@ -117,10 +117,7 @@ int main(int argc, const char **argv) if (opt->dense_combined_merges) opt->diffopt.output_format = DIFF_FORMAT_PATCH; - if (opt->diffopt.output_format == DIFF_FORMAT_PATCH) - opt->diffopt.recursive = 1; - - diff_tree_setup_paths(get_pathspec(prefix, argv), opt); + diff_tree_setup_paths(get_pathspec(prefix, argv), &opt->diffopt); diff_setup_done(&opt->diffopt); switch (nr_sha1) {