]> Lady’s Gitweb - Gitweb/blobdiff - README
gitweb: selectable configurations that change with each request
[Gitweb] / README
diff --git a/README b/README
index 6c5e776af52047b40fcfbc20c708cc550b18ead16352a4eafe306e7c96ae1ab4..2ac82ad5ebd396b4ccf2066c65ffd3f6c676dc83cd6bb9252e27ed1fc559032f 100644 (file)
--- a/README
+++ b/README
@@ -244,6 +244,13 @@ not include variables usually directly set during build):
    http://www.andre-simon.de due to assumptions about parameters and output).
    Useful if highlight is not installed on your webserver's PATH.
    [Default: highlight]
+ * $per_request_config
+   If set to code reference, it would be run once per each request.  You can
+   set parts of configuration that change per session, e.g. by setting it to
+     sub { $ENV{GL_USER} = $cgi->remote_user || "gitweb"; }
+   Otherwise it is treated as boolean value: if true gitweb would process
+   config file once per request, if false it would process config file only
+   once.  The default is true.
 
 Projects list file format
 ~~~~~~~~~~~~~~~~~~~~~~~~~
This page took 0.225387 seconds and 4 git commands to generate.