diff options
author | Johannes Sixt <j6t@kdbg.org> | 2009-12-15 08:57:18 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-12-15 16:21:51 -0800 |
commit | 06500a029953164a3110c705ae579ef43548d006 (patch) | |
tree | 581967ce6858e6653e2adc76272604530de65d8a /t/t4013/diff.diff_--patch-with-raw_initial..side | |
parent | Illustrate "filter" attribute with an example (diff) | |
download | tgif-06500a029953164a3110c705ae579ef43548d006.tar.xz |
help.autocorrect: do not run a command if the command given is junk
If a given command is not found, then help.c tries to guess which one the
user could have meant. If help.autocorrect is 0 or unset, then a list of
suggestions is given as long as the dissimilarity between the given command
and the candidates is not excessively high. But if help.autocorrect was
non-zero (i.e., a delay after which the command is run automatically), the
latter restriction on dissimilarity was not obeyed.
In my case, this happened:
$ git ..daab02
WARNING: You called a Git command named '..daab02', which does not exist.
Continuing under the assumption that you meant 'read-tree'
in 4.0 seconds automatically...
The patch reuses the similarity limit that is also applied when the list of
suggested commands is printed.
Signed-off-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_--patch-with-raw_initial..side')
0 files changed, 0 insertions, 0 deletions