| Mode | Name | Size | |
|---|---|---|---|
| -rw-r--r-- | .gitignore | 61 | logplain |
| -rw-r--r-- | COPYING | 18009 | logplain |
| -rw-r--r-- | Makefile | 666 | logplain |
| -rw-r--r-- | README | 1494 | logplain |
| -rw-r--r-- | cache.c | 2458 | logplain |
| -rw-r--r-- | cgit.c | 2674 | logplain |
| -rw-r--r-- | cgit.css | 1827 | logplain |
| -rw-r--r-- | cgit.h | 2841 | logplain |
| -rw-r--r-- | git.h | 9722 | logplain |
| -rw-r--r-- | html.c | 1687 | logplain |
| -rw-r--r-- | parsing.c | 2643 | logplain |
| -rw-r--r-- | shared.c | 2340 | logplain |
| -rw-r--r-- | ui-commit.c | 1992 | logplain |
| -rw-r--r-- | ui-log.c | 2217 | logplain |
| -rw-r--r-- | ui-repolist.c | 1367 | logplain |
| -rw-r--r-- | ui-shared.c | 2609 | logplain |
| -rw-r--r-- | ui-summary.c | 1576 | logplain |
| -rw-r--r-- | ui-tree.c | 1696 | logplain |
| -rw-r--r-- | ui-view.c | 904 | logplain |
cgit - cgi for git
This is an attempt to create a fast web interface for the git scm, using a frontside cache to decrease server io-pressure.
When cgit is invoked, it looks for a cached page matching the request. If no such cachefile exist (or it has expired), it is (re)generated. Finally, the cachefile is returned to the client.
If the cachefile has expired, but cgit is unable to lock the cachefile, the client will get the stale cachefile after all. This is done to favour page throughput over page freshness.
Also, when a cachefile is generated, a few cache-related http-headers are
created: "Modified" is set to current time(2), while "Expires" is set to
time(2) +
The following cache-related options can be set in /etc/cgitrc:
cache-root=
The cachefiles are split into different directories, based on the requested repository and page:
Repo listing:
