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

"git tags" used to suggest "git stage" which was nonsense; it should
have favored "git tag".  Tweak the cost of deletion to correct it.

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-06-01 13:27:48 -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,