Junio C Hamano  committed 53dd8a9

Show both blob names from "git diff blob1 blob2"

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 <>

  • Participants
  • Parent commits ef67768

Comments (0)

Files changed (1)

File builtin-diff.c

 		     mode, mode,
 		     blob[0].sha1, blob[1].sha1,
-		     blob[0].name, blob[0].name);
+		     blob[0].name, blob[1].name);
 	return 0;