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

Re: gitweb and Levenshtein

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 14, 2018, 21:32 UTC
Message-ID
<nycvar.QRO.7.76.6.1807142331110.75@tvgsbejvaqbjf.bet>
In-Reply-To
<e5903365bd8679d345bf3ca7f535070d@davidwbrown.name>
Hi David,
On Thu, 12 Jul 2018, David Brown wrote:
Show 6 quoted lines
> Howdy, I want to hack the getweb_make_index.perl script to create a string
> search using: https://github.com/git/git/blob/master/levenshtein.c.
> 
> How do i reference the compiled code?
> 
> I would like to call this routine using Java and maybe Perl.

The code to compute the Levenshtein distance is not exposed in Git's command-line interface. Therefore, there is currently no way to call it directly from Java or Perl.

The best you could do for now is to convert the code to Java or Perl.

Ciao, Johannes

Previous: David Brown
Message 2 of 2 in “gitweb and Levenshtein”
  1. David BrownJul 12, 2018
  2. Johannes SchindelinJul 14, 2018

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.