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

Re: [RFC] Splitting gitweb and build-time configuration variables

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Aug 18, 2010, 03:03 UTC
Message-ID
<20100818030321.GB21185@burratino>
In-Reply-To
<201008172015.37353.jnareb@gmail.com>
Jakub Narebski wrote:
> 1. Description of build-time configuration variable is in the module
>    that defines it, and each block of variables coming from the same
>    module would have notice where one can find description of those
>    variables
[...]
Show 7 quoted lines
> 2. Description of build-time configuration variables is in gitweb.perl,
>    and in each module there is comment that full description of those
>    variables can be found there, e.g. (proposal):
> 
>      # Values of those variables are set during build time in 
>      # gitweb/gitweb.perl (main script).  You can find their description
>      # there.
[...]
> 3. Duplicate description of those variables

With #2, a person reading the Makefile can grep for some particular substitution (++GITWEB_PROJECTROOT++) and quickly find the name and description of the variable it is used for. If there were a 1:1 correspondence between the variables in gitweb.perl and the Makefile, I would even suggest moving the description to the Makefile.

In practice, I suspect the run-time configuration is more important to people. That is already fairly well documented in gitweb/README.

Just my two cents, Jonathan

Previous: Jakub NarebskiNext: Jakub Narebski
Message 2 of 3 in “[RFC] Splitting gitweb and build-time configuration variables”
  1. Jakub NarebskiAug 17, 2010
  2. Jonathan NiederAug 18, 2010
  3. Jakub NarebskiAug 18, 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.