Git development
 help / color / mirror / Atom feed
From: Andreas Ericsson <ae@op5.se>
To: Matthieu Moy <Matthieu.Moy@imag.fr>
Cc: git <git@vger.kernel.org>
Subject: Re: [small bug] Surprising "Did you mean this?"
Date: Tue, 18 Nov 2008 19:29:56 +0100	[thread overview]
Message-ID: <492309A4.1050702@op5.se> (raw)
In-Reply-To: <vpqod0dezh9.fsf@bauges.imag.fr>

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

  reply	other threads:[~2008-11-18 18:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-18 17:05 [small bug] Surprising "Did you mean this?" Matthieu Moy
2008-11-18 18:29 ` Andreas Ericsson [this message]
2008-11-18 18:45 ` Samuel Tardieu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=492309A4.1050702@op5.se \
    --to=ae@op5.se \
    --cc=Matthieu.Moy@imag.fr \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox