mirror of
https://github.com/git/git.git
synced 2024-10-20 11:08:12 +02:00
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:
commit
7a824d3c46
2
help.c
2
help.c
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user