]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/diff.c
Show both blob names from "git diff blob1 blob2"
authorJunio C Hamano <junkio@cox.net>
Thu, 3 Aug 2006 18:57:11 +0000 (11:57 -0700)
committerJunio C Hamano <junkio@cox.net>
Thu, 3 Aug 2006 21:41:53 +0000 (14:41 -0700)
commit53dd8a9cb524ac2bd99072d86ee31ee48c99d0be
tree18634b872986a346d716facf5b968906f0c1439b
parentef677686efe1868432d3cc9d4c41a93b44f3def8
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 <junkio@cox.net>
builtin-diff.c