aboutsummaryrefslogtreecommitdiff
path: root/gitweb/gitweb.perl
diff options
context:
space:
mode:
authorErik Faye-Lund <kusmabite@gmail.com>2010-11-26 17:00:39 +0100
committerJunio C Hamano <gitster@pobox.com>2010-12-05 12:15:12 -0800
commit6612b9e471a3e25079dac5257ead8cf6abe68575 (patch)
tree16dd87d66b5f169af3f33f0d0fedb003ae2d5789 /gitweb/gitweb.perl
parent7d43de925b2771d295d8fc4341b7bd544e2a74fa (diff)
downloadgit-6612b9e471a3e25079dac5257ead8cf6abe68575.tar.gz
git-6612b9e471a3e25079dac5257ead8cf6abe68575.tar.xz
help: always suggest common-cmds if prefix of cmd
If someone runs "git st", the command "git status" is not suggested because it's not one of the closest levenshtein-neighbour. Reserve the distance of 0 for common commands where the entered command is a prefixe, as these are often more likely to be what the user meant. This way, "git status" is the first suggestion, while a list of possible typos are still suggested as well. Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/gitweb.perl')
0 files changed, 0 insertions, 0 deletions