[PATCH] Fix diff-pruning logic which was running prune too early.
For later stages to reorder patches, pruning logic and rename detection logic should not decide which delete to discard (because another entry said it will take over the file as a rename) until the very end. Also fix some tests that were assuming the earlier "last one is rename or keep everything else is copy" semantics of diff-raw format, which no longer is true. Signed-off-by: Junio C Hamano <junkio@cox.net> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
9a4a100eb4
commit
bceafe752c
@ -115,7 +115,6 @@ int main(int argc, const char **argv)
|
||||
}
|
||||
if (detect_rename)
|
||||
diffcore_rename(detect_rename, diff_score_opt);
|
||||
diffcore_prune();
|
||||
if (pickaxe)
|
||||
diffcore_pickaxe(pickaxe);
|
||||
if (1 < argc)
|
||||
|
Reference in New Issue
Block a user