diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-06-01 13:27:48 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-06-01 13:27:48 -0700 |
commit | 7a824d3c463c87b75f17baa0c6ff8d4b8c6bdafb (patch) | |
tree | 177ab08d108f0dadaa2212d34b513670ec0d0fbe | |
parent | Merge branch 'jl/submodule-report-new-path-once' (diff) | |
parent | Reduce cost of deletion in levenstein distance (4 -> 3) (diff) | |
download | tgif-7a824d3c463c87b75f17baa0c6ff8d4b8c6bdafb.tar.xz |
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)
-rw-r--r-- | help.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |