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

Re: [PATCH] Enable highlight executable path as a configuration option

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 21, 2010, 19:09 UTC
Message-ID
<201009212109.41676.jnareb@gmail.com>
In-Reply-To
<4C985DDF.8060807@cdwilson.us>
On Tue, 21 Sep 2010, Christopher Wilson wrote:
> Jakub, thanks for the helpful feedback.  I included the updated patch
> (see below) which includes the changes you suggested. 
Show 17 quoted lines
> -- >8 --
> Subject: [PATCH] Enable highlight executable path as a configuration option
> 
> Allow build-time/run-time configuration of the highlight executable
> (must be the one from http://www.andre-simon.de due to assumptions
> about parameters and output).  Defaults to previous behavior which
> assumes that highlight is available on the server PATH. However, if
> this is not the case, the path to the highlight executable can be
> configured at build time as a configuration variable
> 
>     HIGHLIGHT_BIN = /path/to/highlight
> 
> or at runtime by configuring GITWEB_CONFIG
> 
>     $highlight_bin = /path/to/highlight
> 
> Signed-off-by: Christopher Wilson <cwilson@cdwilson.us>
For what it is worth it:
Acked-by: Jakub Narebski <jnareb@gmail.com>

It would certainly be nice to have tests for $highlight_bin, but even assuming that HIGHLIGHT prerequisite is met, I don't know how such test could be written. It is not a show-stopper.

-- 
Jakub Narebski
Poland
Previous: Christopher Wilson
Message 3 of 3 in “Re: [PATCH] Enable highlight executable path as a configuration option”
  1. Jakub NarebskiSep 20, 2010
  2. Christopher WilsonSep 21, 2010
  3. Jakub NarebskiSep 21, 2010

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.