git-pickaxe: improve "best match" heuristics
authorJunio C Hamano <junkio@cox.net>
Fri, 20 Oct 2006 21:51:12 +0000 (14:51 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 21 Oct 2006 01:48:23 +0000 (18:48 -0700)
Instead of comparing number of lines matched, look at the
matched characters and count alnums, so that we do not pass
blame on not-so-interesting lines, such as an empty line and
a line that is indentation followed by a closing brace.

Add an option --score-debug to show the score of each
blame_entry while we cook this further on the "next" branch.

Signed-off-by: Junio C Hamano <junkio@cox.net>
No differences found