Browse Source

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)
maint
Junio C Hamano 13 years ago
parent
commit
7a824d3c46
  1. 2
      help.c

2
help.c

@ -317,7 +317,7 @@ const char *help_unknown_cmd(const char *cmd) @@ -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…
Cancel
Save