git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: More use of levenshtein?

From
David Michael Barr <davidbarr@google.com>
Date
Jun 2, 2012, 11:37 UTC
Message-ID
<CAFfmPPPi92zN7QOh4q=rcVBb0oEFa3LKKdURe5gGj02_dEHoMA@mail.gmail.com>
In-Reply-To
<CACsJy8DuDzxrcb8kbWhH9N=1APQeEOUZzUvSaKCJ7LJ9rc9tKg@mail.gmail.com>
On Sat, Jun 2, 2012 at 8:26 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:
Show 12 quoted lines
> On Sat, Jun 2, 2012 at 2:04 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> Perhaps we could go one step further when we issue this error message?
>>
>>  $ git checkout -b jc/ls-files-i-dir maitn-1.7.8
>>  fatal: git checkout: updating paths is incompatible with switching branches.
>>  Did you intend to checkout 'maitn-1.7.8' which can not be resolved as commit?
>
> Yes, please. Also to correct misspelled option names.
>
> In case there are more than one candidate, we should print extra info
> (for commands or options, it's one line description; for refs,
> probably commit subject line)

This and a functional implementation of "help.autocorrect = prompt." I think we now have the bits and pieces to do it right.

-- David Barr

Previous: Nguyen Thai Ngoc DuyNext: Junio C Hamano
Message 3 of 4 in “More use of levenshtein?”
  1. Junio C HamanoJun 1, 2012
  2. Nguyen Thai Ngoc DuyJun 2, 2012
  3. David Michael BarrJun 2, 2012
  4. Junio C HamanoJun 2, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.