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

Re: [PATCH] gitweb.cgi: Customization

From
Jeff King <peff@peff.net>
Date
Aug 3, 2006, 16:24 UTC
Message-ID
<20060803162427.GA4215@coredump.intra.peff.net>
In-Reply-To
<20060803065852.GH16364@admingilde.org>
On Thu, Aug 03, 2006 at 08:58:52AM +0200, Martin Waitz wrote:
Show 6 quoted lines
> we could make the default use %ENV.
> 
> Something like (in Makefile):
> 
> GITWEB_SITENAME = $$ENV{GITWEB_SITENAME}
> GITWEB_PROJECTROOT = $$ENV{GITWEB_SITENAME} || "/pub/git"

An interesting idea, but it means that gitweb.perl no longer parses as valid perl, since we have things like:

> our $projectroot = @@GITWEB_PROJECTROOT@@;
Do the environment variable names really need to be configurable, or
would something like this work:
  1. accept from config file if it exists and defines $projectroot
  2. otherwise, accept from environment if GITWEB_PROJECTROOT is defined
  3. otherwise, default to compile-time value

Speaking of which, perhaps we should clean up the names of variables that are used by the config file now, before they get into widespread use. The names are very inconsistent (e.g., projectroot, git_temp) and undocumented. We could standardize on something like $GITWEB_PROJECTROOT, matched to GITWEB_PROJECTROOT in the environment and GITWEB_PROJECTROOT in the Makefile.

-Peff
Previous: Martin WaitzNext: Matthias Lederhofer
Message 11 of 22 in “gitweb.cgi: Customization”
  1. gitweb.cgi: CustomizationLuben Tuikov, Aug 1, 2006
  2. Junio C HamanoAug 1, 2006
  3. Luben TuikovAug 1, 2006
  4. Junio C HamanoAug 1, 2006
  5. Luben TuikovAug 2, 2006
  6. Martin LanghoffAug 2, 2006
  7. Junio C HamanoAug 2, 2006
  8. Martin LanghoffAug 2, 2006
  9. Matthias LederhoferAug 2, 2006
  10. Martin WaitzAug 3, 2006
  11. Jeff KingAug 3, 2006
  12. Matthias LederhoferAug 2, 2006
  13. Matthias LederhoferAug 2, 2006
  14. Martin LanghoffAug 2, 2006
  15. Matthias LederhoferAug 2, 2006
  16. Jon LoeligerAug 2, 2006
  17. Jeff KingAug 2, 2006
  18. Matthias LederhoferAug 2, 2006
  19. Jakub NarebskiAug 2, 2006
  20. Junio C HamanoAug 2, 2006
  21. Luben TuikovAug 2, 2006
  22. Matthias LederhoferAug 2, 2006

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.