* [small bug] Surprising "Did you mean this?"
@ 2008-11-18 17:05 Matthieu Moy
2008-11-18 18:29 ` Andreas Ericsson
2008-11-18 18:45 ` Samuel Tardieu
0 siblings, 2 replies; 3+ messages in thread
From: Matthieu Moy @ 2008-11-18 17:05 UTC (permalink / raw)
To: git
Hi,
The following is quite surprising:
$ git tags
git: 'tags' is not a git-command. See 'git --help'.
Did you mean this?
status
I would have expected git to propose me "tag" (1 character removal),
while "status" is quite far from "tags" (remove g, add u, add another
t, shuffle and you're there).
my 2 cents,
--
Matthieu
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [small bug] Surprising "Did you mean this?"
2008-11-18 17:05 [small bug] Surprising "Did you mean this?" Matthieu Moy
@ 2008-11-18 18:29 ` Andreas Ericsson
2008-11-18 18:45 ` Samuel Tardieu
1 sibling, 0 replies; 3+ messages in thread
From: Andreas Ericsson @ 2008-11-18 18:29 UTC (permalink / raw)
To: Matthieu Moy; +Cc: git
Matthieu Moy wrote:
> Hi,
>
> The following is quite surprising:
>
> $ git tags
> git: 'tags' is not a git-command. See 'git --help'.
>
> Did you mean this?
> status
>
> I would have expected git to propose me "tag" (1 character removal),
> while "status" is quite far from "tags" (remove g, add u, add another
> t, shuffle and you're there).
>
That's the Deveraux(?) addendum in action. shuffle+replace = 3 in the
distance score, while remove = 4 (I think).
Typos by users accustomed to computers are more often of the shuffle
(haed vs head) or replace (hwad vs head) kind, while those less
accustomed often fumble more and press more keys. For this case though,
I agree it gives a rather strange result.
--
Andreas Ericsson andreas.ericsson@op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [small bug] Surprising "Did you mean this?"
2008-11-18 17:05 [small bug] Surprising "Did you mean this?" Matthieu Moy
2008-11-18 18:29 ` Andreas Ericsson
@ 2008-11-18 18:45 ` Samuel Tardieu
1 sibling, 0 replies; 3+ messages in thread
From: Samuel Tardieu @ 2008-11-18 18:45 UTC (permalink / raw)
To: Matthieu Moy; +Cc: git
>>>>> "Matthieu" == Matthieu Moy <Matthieu.Moy@imag.fr> writes:
Matthieu> I would have expected git to propose me "tag" (1 character
Matthieu> removal), while "status" is quite far from "tags" (remove g,
Matthieu> add u, add another t, shuffle and you're there).
It looks like the addition of a character at the end (more exactly
the deletion of a character in the possible substitution) is bogus.
I am testing a patch.
Sam
--
Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-11-18 18:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-18 17:05 [small bug] Surprising "Did you mean this?" Matthieu Moy
2008-11-18 18:29 ` Andreas Ericsson
2008-11-18 18:45 ` Samuel Tardieu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox