summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ef67768)
raw | patch | inline | side by side (parent: ef67768)
author | Junio C Hamano <junkio@cox.net> | |
Thu, 3 Aug 2006 18:57:11 +0000 (11:57 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Thu, 3 Aug 2006 21:41:53 +0000 (14:41 -0700) |
Earlier we deliberately showed only blob1's name because showing
both names labeled the output as a renaming patch. Now the output
routine (namely, diff.c::resolve_rename_copy()) is taught not to
use pathname comparison to tell if a filepair is a rename, we can
safely do this change.
Signed-off-by: Junio C Hamano <junkio@cox.net>
both names labeled the output as a renaming patch. Now the output
routine (namely, diff.c::resolve_rename_copy()) is taught not to
use pathname comparison to tell if a filepair is a rename, we can
safely do this change.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-diff.c | patch | blob | history |
diff --git a/builtin-diff.c b/builtin-diff.c
index ec27542d484b8a1d69d1ea5a57ba795f5a78b35c..cb4216eb8a81ac5263337018272043d673d59977 100644 (file)
--- a/builtin-diff.c
+++ b/builtin-diff.c
stuff_change(&revs->diffopt,
mode, mode,
blob[0].sha1, blob[1].sha1,
- blob[0].name, blob[0].name);
+ blob[0].name, blob[1].name);
diffcore_std(&revs->diffopt);
diff_flush(&revs->diffopt);
return 0;