Skip to content

Commit

Permalink
Fix "git diff a..b" breakage
Browse files Browse the repository at this point in the history
The "--cc" implies "-p", but without the recursive part.

		Linus

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Linus Torvalds authored and Junio C Hamano committed Feb 7, 2006
1 parent 4e783b4 commit deb989b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions diff-tree.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,14 +284,15 @@ int main(int argc, const char **argv)
}
usage(diff_tree_usage);
}
if (diff_options.output_format == DIFF_FORMAT_PATCH)
diff_options.recursive = 1;

if (combine_merges) {
diff_options.output_format = DIFF_FORMAT_PATCH;
ignore_merges = 0;
}

if (diff_options.output_format == DIFF_FORMAT_PATCH)
diff_options.recursive = 1;

diff_tree_setup_paths(get_pathspec(prefix, argv));
diff_setup_done(&diff_options);

Expand Down

0 comments on commit deb989b

Please sign in to comment.