aboutsummaryrefslogtreecommitdiff
path: root/diff-tree.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-04-18 11:29:33 -0700
committerJunio C Hamano <junkio@cox.net>2006-04-18 11:29:33 -0700
commitf56ef54174598d5362d0446c5a560cb5892537c2 (patch)
tree9eb7864760a784decc4c9821f427e6d4f64cc688 /diff-tree.c
parent08ddd4f7649ccf8b9f61c903de420bfd0a8a602e (diff)
downloadgit-f56ef54174598d5362d0446c5a560cb5892537c2.tar.gz
git-f56ef54174598d5362d0446c5a560cb5892537c2.tar.xz
diff --stat: make sure to set recursive.
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>
Diffstat (limited to 'diff-tree.c')
-rw-r--r--diff-tree.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/diff-tree.c b/diff-tree.c
index 7015b06c7..d1c61c851 100644
--- a/diff-tree.c
+++ b/diff-tree.c
@@ -117,9 +117,6 @@ 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->diffopt);
diff_setup_done(&opt->diffopt);