summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-06-01 13:27:48 -0700
committerJunio C Hamano <gitster@pobox.com>2012-06-01 13:27:48 -0700
commit7a824d3c463c87b75f17baa0c6ff8d4b8c6bdafb (patch)
tree177ab08d108f0dadaa2212d34b513670ec0d0fbe
parent21e077fd4605bbd21ae996adc8aa5fb0700b9ed1 (diff)
parentc41494f8c89c330cc9bd4629cdc3c428803e76bc (diff)
downloadgit-7a824d3c463c87b75f17baa0c6ff8d4b8c6bdafb.tar.gz
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,