5 This is an attempt to create a fast web interface for the git scm, using a
6 builtin cache to decrease server io-pressure.
13 $ make prefix=<path> install
16 Default value for gitsrc is "../git", and this directory should contain the
19 Default value for prefix is "/var/www/htdocs/cgit". This directory will
20 contain "cgit.cgi" and "cgit.css" after 'make install'.
22 After installation, httpd.conf probably must be updated with a Directory-
23 section for cgit, possibly something like this:
25 <Directory "/var/www/htdocs/cgit/">
35 The file /etc/cgitrc is read by cgit before handling a request. In addition
36 to runtime parameters, this file also contains a list of the repositories
39 A template cgitrc is shipped with the sources, and all parameters and default
40 values are documented in this file.
45 When cgit is invoked it looks for a cachefile matching the request and
46 returns it to the client. If no such cachefile exist (or if it has expired),
47 the content for the request is written into the proper cachefile before the
50 If the cachefile has expired but cgit is unable to obtain a lock for it, the
51 stale cachefile is returned to the client. This is done to favour page
52 throughput over page freshness.
54 The generated content contains the complete response to the client, including
55 the http-headers "Modified" and "Expires".