author | Junio C Hamano <junkio@cox.net> | |
Tue, 24 May 2005 01:14:03 +0000 (18:14 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Tue, 24 May 2005 02:17:06 +0000 (19:17 -0700) | ||
commit | bceafe752c03f4b13b9b1671a55d9e2acd26432d | |
tree | 9036674db3bab78474a79b0445a8d8e178dc9151 | tree | snapshot |
parent | 9a4a100eb46a769d1c5fa80c2daeb0b48a592d8d | commit | diff |
[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>
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>
diff-cache.c | diff | blob | history | |
diff-files.c | diff | blob | history | |
diff-tree.c | diff | blob | history | |
diff.c | diff | blob | history | |
diff.h | diff | blob | history | |
diffcore-rename.c | diff | blob | history | |
diffcore.h | diff | blob | history | |
t/t4005-diff-rename-2.sh | diff | blob | history |