diffcore-break: micro-optimize by avoiding delta between identical files.
authorJunio C Hamano <junkio@cox.net>
Wed, 1 Mar 2006 04:19:47 +0000 (20:19 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 1 Mar 2006 04:19:47 +0000 (20:19 -0800)
commitaeecd23ae2785a0462d42191974e9d9a8e439fbe
tree896d1112a041f1c9eda2b5157d253399d0d3a12f
parente3601e8bb76e46745d4919c3f30b1dddae040eb2
diffcore-break: micro-optimize by avoiding delta between identical files.

We did not check if we have the same file on both sides when
computing break score.  This is usually not a problem, but if
the user said --find-copies-harde with -B, we ended up trying a
delta between the same data even when we know the SHA1 hash of
both sides match.

Signed-off-by: Junio C Hamano <junkio@cox.net>
diffcore-break.c