]> Lady’s Gitweb - Gitweb/commit
gitweb: require $ENV{'GITWEB_CONFIG'}
authorMatthias Lederhofer <redacted>
Wed, 2 Aug 2006 20:29:36 +0000 (22:29 +0200)
committerLady <redacted>
Mon, 6 Apr 2026 04:05:46 +0000 (00:05 -0400)
commitcdc91c717a2ad425aa9013e33a698ae5c8308935d1662a69c791d70806d63541
treec7764596b2e6f1346f05d24291b54becd7c85f7b7ba4e9c5e022e364426ab740
parentc4e7b67e5cfa9b090705cfcea7740469b5cab41fe99d6ec09bfc7b276478a18e
gitweb: require $ENV{'GITWEB_CONFIG'}

With this patch it is possible to use gitweb.perl for developing by
loading the configuration from $GITWEB_CONFIG.  This might also be
useful for normal usage of gitweb.

Example:

    % cat cfg
    $GIT = '/usr/bin/git';
    $projectroot = '/home/matled/src/git';
    $projects_list = '/home/matled/src/git/git/gitweb/list';
    % cat run
    #!/bin/sh
    export GATEWAY_INTERFACE="CGI/1.1"
    export HTTP_ACCEPT="*/*"
    export REQUEST_METHOD="GET"
    export GITWEB_CONFIG='./cfg'
    export QUERY_STRING=""$1""
    exec ./gitweb.perl
    % time ./run p=git/.git > /dev/null

This makes it easy to check for warnings and do performance tests
after changes, you can also pipe this to lynx -dump -force-html
/dev/stdin to get more than just html.

This also documents the original patch adding require $GITWEB_CONFIG.

Signed-off-by: Matthias Lederhofer <redacted>
Signed-off-by: Junio C Hamano <redacted>
README
gitweb.perl
This page took 0.279864 seconds and 4 git commands to generate.