git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* gitweb and Levenshtein
@ 2018-07-12 18:46 David Brown
  2018-07-14 21:32 ` Johannes Schindelin
  0 siblings, 1 reply; 2+ messages in thread
From: David Brown @ 2018-07-12 18:46 UTC (permalink / raw)
  To: git

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.

Please advise.

Thanks.

Regards,

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: gitweb and Levenshtein
  2018-07-12 18:46 gitweb and Levenshtein David Brown
@ 2018-07-14 21:32 ` Johannes Schindelin
  0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2018-07-14 21:32 UTC (permalink / raw)
  To: David Brown; +Cc: git

Hi David,

On Thu, 12 Jul 2018, David Brown wrote:

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-14 21:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-12 18:46 gitweb and Levenshtein David Brown
2018-07-14 21:32 ` Johannes Schindelin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).