Skip to content

Commit 7a824d3

Browse files
committed
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)
2 parents 21e077f + c41494f commit 7a824d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

help.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ const char *help_unknown_cmd(const char *cmd)
317317
}
318318

319319
main_cmds.names[i]->len =
320-
levenshtein(cmd, candidate, 0, 2, 1, 4) + 1;
320+
levenshtein(cmd, candidate, 0, 2, 1, 3) + 1;
321321
}
322322

323323
qsort(main_cmds.names, main_cmds.cnt,

0 commit comments

Comments
 (0)