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

[RFD] gitweb configuration

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 17, 2006, 22:48 UTC
Message-ID
<e720r0$qdv$1@sea.gmane.org>
Petr Baudis <pasky@suse.cz> writes:
Show 5 quoted lines
>  - we might want to have a configuration mechanism in place
>    before enhancing gitweb.  My gut feeling is that we can use
>    [gitweb] section in project.git/config (and probably
>    duplicate first and deprecate later existing "description" as
>    well).

The problem is we have different types of configuration in gitweb, and we should take care where to put appropriate configuration options/variables.

- build time options, like $gitexecdir ($gitbin now) or $gitweb_version 
  ($version now) which could be set at build time a la ./configure i.e
  my $gitexecdir = "@GIT_EXEC_DIR@"; or something like that.
- gitweb installation options (gitweb version need not to correspond to 
  git version, and we could theoretically have more than one gitweb
  installation while one git-core installation). It was proposed to put
  such options on gitweb.conf file in the same directory as gitweb.cgi.
  Unfortunately if one would want to use git-repo-config for managing
  gitweb.conf one is out of luck: git-repo-config uses $GIT_DIR/config.
  Among installation options we could put also defaults for repository-wide
  (repository specific) options.
  Global gitweb options include:
  * $projectroot - absolute fs-path which will be prepended to the 
    project path, i.e. where projects to display are located (dir)
  * $projects_list - source of projects list (file)
  * $home_text - html text to include at home page (file)
  * $stylesheet - default gitweb stylesheet (file)
  * $git_temp - where to place temporary files (dir)
- repository specific options, of which gitweb for now uses only 
  $GIT_DIR/description, and which could use repository configuration,
  [gitweb] section.
  Repository specific options [can] include:
  * description - One line description of repository; 
    theoretical problem: HTML escaping.
  * blame - to make 'blame'/'annotate' interface available.
  * blobmimemapfile - for repository specific mime map for blob_plain.
  * favicon - if default favicon is not used.
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git
Next: Petr Baudis
Message 1 of 12 in “[RFD] gitweb configuration”
  1. Jakub NarebskiJun 17, 2006
  2. Petr BaudisJun 17, 2006
  3. Jakub NarebskiJun 18, 2006
  4. Martin LanghoffJun 18, 2006
  5. Jakub NarebskiJun 18, 2006
  6. Timo HirvonenJun 18, 2006
  7. Jakub NarebskiJun 18, 2006
  8. Junio C HamanoJun 18, 2006
  9. Jakub NarebskiJun 18, 2006
  10. Martin LanghoffJun 18, 2006
  11. Junio C HamanoJun 18, 2006
  12. Petr BaudisJun 18, 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.