Skip to content

Commit

Permalink
combined-diff: use diffcore before intersecting paths.
Browse files Browse the repository at this point in the history
This is needed to make "diff-tree -c -M" to work semi-sensibly.
Otherwise rename detection, pickaxe and friends would never be
invoked.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Feb 9, 2006
1 parent ee63802 commit 5b23683
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion combine-diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ const char *diff_tree_combined_merge(const unsigned char *sha1,
struct combine_diff_path *p, *paths = NULL;
int num_parent, i, num_paths;

diff_setup(&diffopts);
diffopts = *opt;
diffopts.output_format = DIFF_FORMAT_NO_OUTPUT;
diffopts.recursive = 1;

Expand All @@ -846,6 +846,7 @@ const char *diff_tree_combined_merge(const unsigned char *sha1,
struct commit *parent = parents->item;
diff_tree_sha1(parent->object.sha1, commit->object.sha1, "",
&diffopts);
diffcore_std(&diffopts);
paths = intersect_paths(paths, i, num_parent);
diff_flush(&diffopts);
}
Expand Down

0 comments on commit 5b23683

Please sign in to comment.