blame: Notice a wholesale incorporation of an existing file.
commitdd166aa8e52dba39a3087b8012113af331d3110b
authorJunio C Hamano <junkio@cox.net>
Sat, 5 May 2007 16:13:26 +0000 (5 09:13 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 6 May 2007 05:40:13 +0000 (5 22:40 -0700)
tree22cf63181de85ca85538d0d6ef10e9b969d69a11
parente330a406cd20cf45a6816929155181c37678bc47
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>
builtin-blame.c