{"thread":{"id":"30680","subject":"More use of levenshtein?","startedAt":"2012-06-01T19:04:00Z","lastAt":"2012-06-02T22:55:50Z","messageCount":4,"participants":["Junio C Hamano","Nguyen Thai Ngoc Duy","David Michael Barr"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"192686","messageId":"7vzk8m26sf.fsf@alter.siamese.dyndns.org","threadId":"30680","inReplyTo":null,"subject":"More use of levenshtein?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-06-01T19:04:00Z","receivedAt":"2012-06-01T19:04:00Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Perhaps we could go one step further when we issue this error message?\n\n  $ git checkout -b jc/ls-files-i-dir maitn-1.7.8\n  fatal: git checkout: updating paths is incompatible with switching branches.\n  Did you intend to checkout 'maitn-1.7.8' which can not be resolved as commit?\n\nYes, I do have maint-1.7.8 branch in my private repository.\n"},{"id":"192706","messageId":"CACsJy8DuDzxrcb8kbWhH9N=1APQeEOUZzUvSaKCJ7LJ9rc9tKg@mail.gmail.com","threadId":"30680","inReplyTo":"7vzk8m26sf.fsf@alter.siamese.dyndns.org","subject":"Re: More use of levenshtein?","fromName":"Nguyen Thai Ngoc Duy","fromEmail":"pclouds@gmail.com","sentAt":"2012-06-02T10:26:57Z","receivedAt":"2012-06-02T10:26:57Z","isPatch":false,"sender":{"key":"pclouds@gmail.com","avatar":"https://avatars.githubusercontent.com/u/720?v=4"},"body":"On Sat, Jun 2, 2012 at 2:04 AM, Junio C Hamano <gitster@pobox.com> wrote:\n> Perhaps we could go one step further when we issue this error message?\n>\n>  $ git checkout -b jc/ls-files-i-dir maitn-1.7.8\n>  fatal: git checkout: updating paths is incompatible with switching branches.\n>  Did you intend to checkout 'maitn-1.7.8' which can not be resolved as commit?\n\nYes, please. Also to correct misspelled option names.\n\nIn case there are more than one candidate, we should print extra info\n(for commands or options, it's one line description; for refs,\nprobably commit subject line)\n-- \nDuy\n"},{"id":"192713","messageId":"CAFfmPPPi92zN7QOh4q=rcVBb0oEFa3LKKdURe5gGj02_dEHoMA@mail.gmail.com","threadId":"30680","inReplyTo":"CACsJy8DuDzxrcb8kbWhH9N=1APQeEOUZzUvSaKCJ7LJ9rc9tKg@mail.gmail.com","subject":"Re: More use of levenshtein?","fromName":"David Michael Barr","fromEmail":"davidbarr@google.com","sentAt":"2012-06-02T11:37:56Z","receivedAt":"2012-06-02T11:37:56Z","isPatch":false,"sender":{"key":"davidbarr@google.com","avatar":"https://avatars.githubusercontent.com/u/220594?v=4"},"body":"On Sat, Jun 2, 2012 at 8:26 PM, Nguyen Thai Ngoc Duy <pclouds@gmail.com> wrote:\n> On Sat, Jun 2, 2012 at 2:04 AM, Junio C Hamano <gitster@pobox.com> wrote:\n>> Perhaps we could go one step further when we issue this error message?\n>>\n>>  $ git checkout -b jc/ls-files-i-dir maitn-1.7.8\n>>  fatal: git checkout: updating paths is incompatible with switching branches.\n>>  Did you intend to checkout 'maitn-1.7.8' which can not be resolved as commit?\n>\n> Yes, please. Also to correct misspelled option names.\n>\n> In case there are more than one candidate, we should print extra info\n> (for commands or options, it's one line description; for refs,\n> probably commit subject line)\n\nThis and a functional implementation of \"help.autocorrect = prompt.\"\nI think we now have the bits and pieces to do it right.\n\n--\nDavid Barr\n"},{"id":"192731","messageId":"7vvcj9z5l5.fsf@alter.siamese.dyndns.org","threadId":"30680","inReplyTo":"CACsJy8DuDzxrcb8kbWhH9N=1APQeEOUZzUvSaKCJ7LJ9rc9tKg@mail.gmail.com","subject":"Re: More use of levenshtein?","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2012-06-02T22:55:50Z","receivedAt":"2012-06-02T22:55:50Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Nguyen Thai Ngoc Duy <pclouds@gmail.com> writes:\n\n> Yes, please. Also to correct misspelled option names.\n>\n> In case there are more than one candidate, we should print extra info\n> (for commands or options, it's one line description; for refs,\n> probably commit subject line)\n\nI do not think either is a good idea.  We are talking about \"typo\",\nthe user knew what he wanted, just didn't spell it correctly.\n"}]}