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

Re: [PATCH] gitweb.cgi: Customization

From
Martin Waitz <tali@admingilde.org>
Date
Aug 3, 2006, 06:58 UTC
Message-ID
<20060803065852.GH16364@admingilde.org>
In-Reply-To
<46a038f90608011913t777cf20dh9baaf355b19d18e6@mail.gmail.com>
hoi :)
On Wed, Aug 02, 2006 at 02:13:51PM +1200, Martin Langhoff wrote:
Show 13 quoted lines
> On 8/2/06, Junio C Hamano <junkio@cox.net> wrote:
> >I do not think there is much difference between any of the
> >customization proposed so far (yours, Martin's and the one from
> >Matthias Lederhofer) from functionality and ease-of-use point of
> >view.  They all try to make customization can be done in one
> >place, and the difference is mostly of taste, so I'd just pick
> >one from Martin
> 
> I'm a bit lost as to gitweb config. Are we not relying on %ENV for
> this stuff? Apache's facilities to configure CGIs via ENV are really
> powerful. You can do conditionals in apache config files, lock stuff
> down in httpd.conf, override it with files in conf.d, and
> allow/disallow overrides in .htaccess ...
we could make the default use %ENV.
Something like (in Makefile):

GITWEB_SITENAME = $$ENV{GITWEB_SITENAME} GITWEB_PROJECTROOT = $$ENV{GITWEB_SITENAME} || "/pub/git" ...

and then change gitweb to not put the expanded config values into quotes. So:

our $projectroot = @@GITWEB_PROJECTROOT@@;

This approach would allow both built-time or run-time configuration of gitweb.

-- 
Martin Waitz
Previous: Matthias LederhoferNext: Jeff King
Message 10 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.