]> git.ipfire.org Git - thirdparty/git.git/commit - diffcore-rename.c
diff.c: do not use pathname comparison to tell renames
authorJunio C Hamano <junkio@cox.net>
Thu, 3 Aug 2006 19:01:01 +0000 (12:01 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 3 Aug 2006 21:41:53 +0000 (14:41 -0700)
commitef677686efe1868432d3cc9d4c41a93b44f3def8
treef4ba8f6c1117bd4a9c62257150ad0bb28d413e85
parentc43ce6d603c68f716f83f1da68cc4692202085e0
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>
diff.c
diffcore-rename.c
diffcore.h