author | Junio C Hamano <junkio@cox.net> | |
Thu, 3 Aug 2006 19:01:01 +0000 (12:01 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 3 Aug 2006 21:41:53 +0000 (14:41 -0700) | ||
commit | ef677686efe1868432d3cc9d4c41a93b44f3def8 | |
tree | f4ba8f6c1117bd4a9c62257150ad0bb28d413e85 | tree | snapshot |
parent | c43ce6d603c68f716f83f1da68cc4692202085e0 | commit | diff |
diff.c: do not use pathname comparison to tell renames
The final output from diff used to compare pathnames between
preimage and postimage to tell if the filepair is a rename/copy.
By explicitly marking the filepair created by diffcore_rename(),
the output routine, resolve_rename_copy(), does not have to do
so anymore. This helps feeding a filepair that has different
pathnames in one and two elements to the diff machinery (most
notably, comparing two blobs).
Signed-off-by: Junio C Hamano <junkio@cox.net>
The final output from diff used to compare pathnames between
preimage and postimage to tell if the filepair is a rename/copy.
By explicitly marking the filepair created by diffcore_rename(),
the output routine, resolve_rename_copy(), does not have to do
so anymore. This helps feeding a filepair that has different
pathnames in one and two elements to the diff machinery (most
notably, comparing two blobs).
Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c | diff | blob | history | |
diffcore-rename.c | diff | blob | history | |
diffcore.h | diff | blob | history |