summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2012-06-01 13:27:48 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-06-01 13:27:48 -0700
commit7a824d3c463c87b75f17baa0c6ff8d4b8c6bdafb (patch)
tree177ab08d108f0dadaa2212d34b513670ec0d0fbe
parentMerge branch 'jl/submodule-report-new-path-once' (diff)
parentReduce cost of deletion in levenstein distance (4 -> 3) (diff)
downloadtgif-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/help.c b/help.c
index 69d483d8d3..6012c07b73 100644
--- a/help.c
+++ b/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,