Code

diffcore-rename: don't change similarity index based on basename equality
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sun, 24 Jun 2007 22:23:28 +0000 (00:23 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Jun 2007 06:12:31 +0000 (23:12 -0700)
commitcfc0aef1ffb8a9fe2792667597a05bbf3b6b1258
treee16d104e9b3b90a9c952c5f4b575e9d83a4fe301
parentaeb59328453cd4f438345ea79ff04c96bccbbbb8
diffcore-rename: don't change similarity index based on basename equality

This implements a suggestion from Johannes.  It uses a separate field in
struct diff_score to keep the result of the file name comparison in the
rename detection logic.  This reverts the value of the similarity index
to be a function of file contents, only, and basename comparison is only
used to decide between files with equal amounts of content changes.

Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diffcore-rename.c