{"thread":{"id":"16380","subject":"[small bug] Surprising \"Did you mean this?\"","startedAt":"2008-11-18T17:05:38Z","lastAt":"2008-11-18T18:45:45Z","messageCount":3,"participants":["Matthieu Moy","Andreas Ericsson","Samuel Tardieu"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"96087","messageId":"vpqod0dezh9.fsf@bauges.imag.fr","threadId":"16380","inReplyTo":null,"subject":"[small bug] Surprising \"Did you mean this?\"","fromName":"Matthieu Moy","fromEmail":"matthieu.moy@imag.fr","sentAt":"2008-11-18T17:05:38Z","receivedAt":"2008-11-18T17:05:38Z","isPatch":false,"sender":{"key":"git@matthieu-moy.fr","avatar":"https://avatars.githubusercontent.com/u/14709?v=4"},"body":"Hi,\n\nThe following is quite surprising:\n\n  $ git tags \n  git: 'tags' is not a git-command. See 'git --help'.\n  \n  Did you mean this?\n          status\n  \nI would have expected git to propose me \"tag\" (1 character removal),\nwhile \"status\" is quite far from \"tags\" (remove g, add u, add another\nt, shuffle and you're there).\n\nmy 2 cents,\n\n-- \nMatthieu\n"},{"id":"96088","messageId":"492309A4.1050702@op5.se","threadId":"16380","inReplyTo":"vpqod0dezh9.fsf@bauges.imag.fr","subject":"Re: [small bug] Surprising \"Did you mean this?\"","fromName":"Andreas Ericsson","fromEmail":"ae@op5.se","sentAt":"2008-11-18T18:29:56Z","receivedAt":"2008-11-18T18:29:56Z","isPatch":false,"sender":{"key":"ae@op5.se","avatar":"https://gravatar.com/avatar/426e89595c75a8f5252dd0c989e5fabe5bcac616e68557427ad9aef6b0ca342a?d=mp&s=160"},"body":"Matthieu Moy wrote:\n> Hi,\n> \n> The following is quite surprising:\n> \n>   $ git tags \n>   git: 'tags' is not a git-command. See 'git --help'.\n>   \n>   Did you mean this?\n>           status\n>   \n> I would have expected git to propose me \"tag\" (1 character removal),\n> while \"status\" is quite far from \"tags\" (remove g, add u, add another\n> t, shuffle and you're there).\n> \n\nThat's the Deveraux(?) addendum in action. shuffle+replace = 3 in the\ndistance score, while remove = 4 (I think).\n\nTypos by users accustomed to computers are more often of the shuffle\n(haed vs head) or replace (hwad vs head) kind, while those less\naccustomed often fumble more and press more keys. For this case though,\nI agree it gives a rather strange result.\n\n-- \nAndreas Ericsson                   andreas.ericsson@op5.se\nOP5 AB                             www.op5.se\nTel: +46 8-230225                  Fax: +46 8-230231\n"},{"id":"96089","messageId":"2008-11-18-19-45-45+trackit+sam@rfc1149.net","threadId":"16380","inReplyTo":"vpqod0dezh9.fsf@bauges.imag.fr","subject":"Re: [small bug] Surprising \"Did you mean this?\"","fromName":"Samuel Tardieu","fromEmail":"sam@rfc1149.net","sentAt":"2008-11-18T18:45:45Z","receivedAt":"2008-11-18T18:45:45Z","isPatch":false,"sender":{"key":"sam@rfc1149.net","avatar":"https://avatars.githubusercontent.com/u/44656?v=4"},"body":">>>>> \"Matthieu\" == Matthieu Moy <Matthieu.Moy@imag.fr> writes:\n\nMatthieu> I would have expected git to propose me \"tag\" (1 character\nMatthieu> removal), while \"status\" is quite far from \"tags\" (remove g,\nMatthieu> add u, add another t, shuffle and you're there).\n\nIt looks like the addition of a character at the end (more exactly\nthe deletion of a character in the possible substitution) is bogus.\nI am testing a patch.\n\n  Sam\n-- \nSamuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/\n"}]}