author | Junio C Hamano <junkio@cox.net> | |
Sat, 5 May 2007 16:13:26 +0000 (09:13 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 6 May 2007 05:40:13 +0000 (22:40 -0700) | ||
commit | dd166aa8e52dba39a3087b8012113af331d3110b | |
tree | 22cf63181de85ca85538d0d6ef10e9b969d69a11 | tree | snapshot |
parent | e330a406cd20cf45a6816929155181c37678bc47 | commit | diff |
blame: Notice a wholesale incorporation of an existing file.
The -C option to blame tries to find a section of a preimage
file by running diff against the lines whose origin is still
unknown, and excluding the different parts. The code however
did not cover the case where the tail part of the section
matched, which we handle for the normal non-move/copy codepath.
This breakage was most visible when preimage file matches in its
entirety and failed to pass blame in such a case.
Signed-off-by: Junio C Hamano <junkio@cox.net>
The -C option to blame tries to find a section of a preimage
file by running diff against the lines whose origin is still
unknown, and excluding the different parts. The code however
did not cover the case where the tail part of the section
matched, which we handle for the normal non-move/copy codepath.
This breakage was most visible when preimage file matches in its
entirety and failed to pass blame in such a case.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-blame.c | diff | blob | history |