{"thread":{"id":"48870","subject":"gitweb and Levenshtein","startedAt":"2018-07-12T18:55:48Z","lastAt":"2018-07-14T21:32:23Z","messageCount":2,"participants":["David Brown","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"352386","messageId":"e5903365bd8679d345bf3ca7f535070d@davidwbrown.name","threadId":"48870","inReplyTo":null,"subject":"gitweb and Levenshtein","fromName":"David Brown","fromEmail":"david@davidwbrown.name","sentAt":"2018-07-12T18:46:09Z","receivedAt":"2018-07-12T18:55:48Z","isPatch":false,"sender":{"key":"david@davidwbrown.name","avatar":"https://gravatar.com/avatar/c9f1df953200b4f5fda054b555a876f9297b561df38184edef6473771e4e5729?d=mp&s=160"},"body":"Howdy, I want to hack the getweb_make_index.perl script to create a \nstring search using: \nhttps://github.com/git/git/blob/master/levenshtein.c.\n\nHow do i reference the compiled code?\n\nI would like to call this routine using Java and maybe Perl.\n\nPlease advise.\n\nThanks.\n\nRegards,\n"},{"id":"352559","messageId":"nycvar.QRO.7.76.6.1807142331110.75@tvgsbejvaqbjf.bet","threadId":"48870","inReplyTo":"e5903365bd8679d345bf3ca7f535070d@davidwbrown.name","subject":"Re: gitweb and Levenshtein","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2018-07-14T21:32:12Z","receivedAt":"2018-07-14T21:32:23Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi David,\n\nOn Thu, 12 Jul 2018, David Brown wrote:\n\n> Howdy, I want to hack the getweb_make_index.perl script to create a string\n> search using: https://github.com/git/git/blob/master/levenshtein.c.\n> \n> How do i reference the compiled code?\n> \n> I would like to call this routine using Java and maybe Perl.\n\nThe code to compute the Levenshtein distance is not exposed in Git's\ncommand-line interface. Therefore, there is currently no way to call it\ndirectly from Java or Perl.\n\nThe best you could do for now is to convert the code to Java or Perl.\n\nCiao,\nJohannes\n"}]}