Merge branch 'mm/levenstein-penalize-deletion-less' into next

Will merge to master by 1.7.11 final.

By Matthieu Moy
* mm/levenstein-penalize-deletion-less:
  Reduce cost of deletion in levenstein distance (4 -> 3)
This commit is contained in:
Junio C Hamano
2012-05-30 13:36:38 -07:00

2
help.c
View File

@@ -317,7 +317,7 @@ const char *help_unknown_cmd(const char *cmd)
}
main_cmds.names[i]->len =
levenshtein(cmd, candidate, 0, 2, 1, 4) + 1;
levenshtein(cmd, candidate, 0, 2, 1, 3) + 1;
}
qsort(main_cmds.names, main_cmds.cnt,