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

Re: [PATCH] gitweb.cgi: Customization

From
LTLuben Tuikov <ltuikov@yahoo.com>
Date
Aug 2, 2006, 20:30 UTC
Message-ID
<20060802203003.61929.qmail@web31802.mail.mud.yahoo.com>
In-Reply-To
<1154535801.19994.15.camel@cashmere.sps.mot.com>
--- Jon Loeliger <jdl@freescale.com> wrote:
Show 13 quoted lines
> On Tue, 2006-08-01 at 18:54, Junio C Hamano wrote:
> 
> > In any case, I think tweaking gitweb.cgi from Makefile like
> > Martin Waitz did is as easy and clean for people who want to
> > customize; it should just be the matter of defining the
> > necessary params in config.mak.
> 
> I disagree.  I run multiple virtual web servers on one
> physical machine.  Several of them run different gitweb
> instances, each with different configurations.
> 
> With this "params in config.mk" approach, I have to
> run it multiple times, once for each web server I run.
That's exactly my sentiments.
> I _really_ would prefer an "include from ." feature
> where I can place the specific gitweb_config.pm parts
> in the same directory where gitweb.{pl,cgi} is installed.

Yes, this approach is simple and straightforward enough. When upgrading, one only needs to do a "cp".

> We really need to separate out these config values
> from the gitweb.{pl,cgi} script itself.  We _need_ to
> be able to update the gitweb script independently,
> and easily.
That's exactly where I was going with this patch.
I don't want to have to:
  - configure httpd, or
  - configure the environment of user "apache", or
  - have a separate forked off branch in order to "configure"
    gitweb at compile time for each gitweb instance I'm running,
  - etc, etc, etc.

Configuration, especially of user space programs should be completely dynamic. Compilation for user space programs should be a separate process from configuration.

Show 8 quoted lines
> > 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.
> 
> Let's just make sure it is a separate config file, please.

I thing your and mine deployment are pretty similar, thus warranting a more flexible approach, withouth having to recompile or reconfigure completely unrelated programs and users.

    Luben
Previous: Junio C HamanoNext: Matthias Lederhofer
Message 21 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.