summaryrefslogtreecommitdiffabout
path: root/cgitrc
Unidiff
Diffstat (limited to 'cgitrc') (more/less context) (ignore whitespace changes)
-rw-r--r--cgitrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/cgitrc b/cgitrc
index 34ea116..796a62c 100644
--- a/cgitrc
+++ b/cgitrc
@@ -1,107 +1,114 @@
1## 1##
2## cgitrc: template for /etc/cgitrc 2## cgitrc: template for /etc/cgitrc
3## 3##
4 4
5 5
6## Uncomment and set to 1 to deactivate caching of generated pages. Mostly 6## Uncomment and set to 1 to deactivate caching of generated pages. Mostly
7## usefull for testing. 7## usefull for testing.
8#nocache=0 8#nocache=0
9 9
10 10
11## Set allowed snapshot types by default. Can be overridden per repo 11## Set allowed snapshot types by default. Can be overridden per repo
12# can be any combination of zip/tar.gz/tar.bz2/tar 12# can be any combination of zip/tar.gz/tar.bz2/tar
13#snapshots=0 13#snapshots=0
14 14
15 15
16## Enable/disable extra links to summary/log/tree per repo on index page 16## Enable/disable extra links to summary/log/tree per repo on index page
17#enable-index-links=0 17#enable-index-links=0
18 18
19 19
20## Enable/disable display of 'number of files changed' in log view 20## Enable/disable display of 'number of files changed' in log view
21#enable-log-filecount=0 21#enable-log-filecount=0
22 22
23 23
24## Enable/disable display of 'number of lines changed' in log view 24## Enable/disable display of 'number of lines changed' in log view
25#enable-log-linecount=0 25#enable-log-linecount=0
26 26
27 27
28## Enable/disable display of HEAD shortlog in summary view. Set it to maximum 28## Enable/disable display of HEAD shortlog in summary view. Set it to maximum
29## number of commits that should be displayed 29## number of commits that should be displayed
30#summary-log=0 30#summary-log=0
31 31
32 32
33## The "Idle" column on the repository index page can read a timestamp 33## The "Idle" column on the repository index page can read a timestamp
34## from the specified agefile (if this file cannot be found, the mtime 34## from the specified agefile (if this file cannot be found, the mtime
35## of HEAD is used). 35## of HEAD is used).
36## The cgit repo on hjemli.net uses the the following command in it's 36## The cgit repo on hjemli.net uses the the following command in it's
37## post-receive hook to update the age-file: 37## post-receive hook to update the age-file:
38## git-for-each-ref --format="%(committerdate)" --sort=-committerdate \ 38## git-for-each-ref --format="%(committerdate)" --sort=-committerdate \
39## --count=1 > $GIT_DIR/info/web/last-modifie 39## --count=1 > $GIT_DIR/info/web/last-modifie
40## 40##
41#agefile=info/web/last-modified 41#agefile=info/web/last-modified
42 42
43 43
44## Git detects renames, but with a limit on the number of files to
45## consider. This option can be used to specify another limit (or -1 to
46## use the default limit).
47##
48#renamelimit=-1
49
50
44## Specify a root for virtual urls. This makes cgit generate urls like 51## Specify a root for virtual urls. This makes cgit generate urls like
45## 52##
46## http://localhost/git/repo/log/?h=branch 53## http://localhost/git/repo/log/?h=branch
47## 54##
48## instead of 55## instead of
49## 56##
50## http://localhost/cgit/cgit.cgi?url=repo/log&h=branch 57## http://localhost/cgit/cgit.cgi?url=repo/log&h=branch
51## 58##
52## For this to work with apache, a rewrite rule must be added to httpd.conf, 59## For this to work with apache, a rewrite rule must be added to httpd.conf,
53## possibly looking something like this: 60## possibly looking something like this:
54## 61##
55## RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1 [L,QSA] 62## RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1 [L,QSA]
56## 63##
57## For this to work with lighttpd, the rewrite rule should look more like this: 64## For this to work with lighttpd, the rewrite rule should look more like this:
58## 65##
59## url.rewrite = ( 66## url.rewrite = (
60## "^/git/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2" 67## "^/git/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2"
61## ) 68## )
62## 69##
63## This setting is disabled by default. 70## This setting is disabled by default.
64#virtual-root=/git 71#virtual-root=/git
65 72
66 73
67## Set the title printed on the root page 74## Set the title printed on the root page
68#root-title=Git repository browser 75#root-title=Git repository browser
69 76
70 77
71## If specified, the file at this path will be included as HTML in the index 78## If specified, the file at this path will be included as HTML in the index
72## of repositories 79## of repositories
73#index-header= 80#index-header=
74 81
75 82
76## Link to css file 83## Link to css file
77#css=/cgit/cgit.css 84#css=/cgit/cgit.css
78 85
79 86
80## Link to logo file 87## Link to logo file
81#logo=/cgit/git-logo.png 88#logo=/cgit/git-logo.png
82 89
83 90
84## Url loaded when clicking the logo 91## Url loaded when clicking the logo
85#logo-link=http://www.kernel.org/pub/software/scm/git/docs/ 92#logo-link=http://www.kernel.org/pub/software/scm/git/docs/
86 93
87 94
88## Url loaded when clicking a submodule link 95## Url loaded when clicking a submodule link
89#module-link=./?repo=%s&page=commit&id=%s 96#module-link=./?repo=%s&page=commit&id=%s
90 97
91 98
92## Number of chars shown of repo description (in repolist view) 99## Number of chars shown of repo description (in repolist view)
93#max-repodesc-length=60 100#max-repodesc-length=60
94 101
95 102
96## Number of chars shown of commit subject message (in log view) 103## Number of chars shown of commit subject message (in log view)
97#max-message-length=60 104#max-message-length=60
98 105
99 106
100## Number of commits per page in log view 107## Number of commits per page in log view
101#max-commit-count=50 108#max-commit-count=50
102 109
103 110
104## Root of cached output 111## Root of cached output
105#cache-root=/var/cache/cgit 112#cache-root=/var/cache/cgit
106 113
107 114