author | Jason A. Donenfeld <Jason@zx2c4.com> | 2010-07-29 18:38:01 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-08-04 01:09:32 (UTC) |
commit | 119397b175874bd606952e93b7249ae4ffb9afbe (patch) (unidiff) | |
tree | 98f6a7d5661a52120c11088ee474a2a5d7449f60 /cgitrc.5.txt | |
parent | 2e4a941626c240bc7858aa7564882c01f657f4e8 (diff) | |
download | cgit-119397b175874bd606952e93b7249ae4ffb9afbe.zip cgit-119397b175874bd606952e93b7249ae4ffb9afbe.tar.gz cgit-119397b175874bd606952e93b7249ae4ffb9afbe.tar.bz2 |
Add support for 'enable-gitweb-owner' option
When this option is enabled (which it is by default), cgit will lookup
the 'gitweb.owner' setting in each git config file found when processing
the 'scan-path' option.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgitrc.5.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 6fb1083..5d77973 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt | |||
@@ -1,225 +1,230 @@ | |||
1 | :man source: cgit | 1 | :man source: cgit |
2 | :man manual: cgit | 2 | :man manual: cgit |
3 | 3 | ||
4 | CGITRC(5) | 4 | CGITRC(5) |
5 | ======== | 5 | ======== |
6 | 6 | ||
7 | 7 | ||
8 | NAME | 8 | NAME |
9 | ---- | 9 | ---- |
10 | cgitrc - runtime configuration for cgit | 10 | cgitrc - runtime configuration for cgit |
11 | 11 | ||
12 | 12 | ||
13 | SYNOPSIS | 13 | SYNOPSIS |
14 | -------- | 14 | -------- |
15 | Cgitrc contains all runtime settings for cgit, including the list of git | 15 | Cgitrc contains all runtime settings for cgit, including the list of git |
16 | repositories, formatted as a line-separated list of NAME=VALUE pairs. Blank | 16 | repositories, formatted as a line-separated list of NAME=VALUE pairs. Blank |
17 | lines, and lines starting with '#', are ignored. | 17 | lines, and lines starting with '#', are ignored. |
18 | 18 | ||
19 | 19 | ||
20 | LOCATION | 20 | LOCATION |
21 | -------- | 21 | -------- |
22 | The default location of cgitrc, defined at compile time, is /etc/cgitrc. At | 22 | The default location of cgitrc, defined at compile time, is /etc/cgitrc. At |
23 | runtime, cgit will consult the environment variable CGIT_CONFIG and, if | 23 | runtime, cgit will consult the environment variable CGIT_CONFIG and, if |
24 | defined, use its value instead. | 24 | defined, use its value instead. |
25 | 25 | ||
26 | 26 | ||
27 | GLOBAL SETTINGS | 27 | GLOBAL SETTINGS |
28 | --------------- | 28 | --------------- |
29 | about-filter:: | 29 | about-filter:: |
30 | Specifies a command which will be invoked to format the content of | 30 | Specifies a command which will be invoked to format the content of |
31 | about pages (both top-level and for each repository). The command will | 31 | about pages (both top-level and for each repository). The command will |
32 | get the content of the about-file on its STDIN, and the STDOUT from the | 32 | get the content of the about-file on its STDIN, and the STDOUT from the |
33 | command will be included verbatim on the about page. Default value: | 33 | command will be included verbatim on the about page. Default value: |
34 | none. | 34 | none. |
35 | 35 | ||
36 | agefile:: | 36 | agefile:: |
37 | Specifies a path, relative to each repository path, which can be used | 37 | Specifies a path, relative to each repository path, which can be used |
38 | to specify the date and time of the youngest commit in the repository. | 38 | to specify the date and time of the youngest commit in the repository. |
39 | The first line in the file is used as input to the "parse_date" | 39 | The first line in the file is used as input to the "parse_date" |
40 | function in libgit. Recommended timestamp-format is "yyyy-mm-dd | 40 | function in libgit. Recommended timestamp-format is "yyyy-mm-dd |
41 | hh:mm:ss". Default value: "info/web/last-modified". | 41 | hh:mm:ss". Default value: "info/web/last-modified". |
42 | 42 | ||
43 | cache-root:: | 43 | cache-root:: |
44 | Path used to store the cgit cache entries. Default value: | 44 | Path used to store the cgit cache entries. Default value: |
45 | "/var/cache/cgit". | 45 | "/var/cache/cgit". |
46 | 46 | ||
47 | cache-dynamic-ttl:: | 47 | cache-dynamic-ttl:: |
48 | Number which specifies the time-to-live, in minutes, for the cached | 48 | Number which specifies the time-to-live, in minutes, for the cached |
49 | version of repository pages accessed without a fixed SHA1. Default | 49 | version of repository pages accessed without a fixed SHA1. Default |
50 | value: "5". | 50 | value: "5". |
51 | 51 | ||
52 | cache-repo-ttl:: | 52 | cache-repo-ttl:: |
53 | Number which specifies the time-to-live, in minutes, for the cached | 53 | Number which specifies the time-to-live, in minutes, for the cached |
54 | version of the repository summary page. Default value: "5". | 54 | version of the repository summary page. Default value: "5". |
55 | 55 | ||
56 | cache-root-ttl:: | 56 | cache-root-ttl:: |
57 | Number which specifies the time-to-live, in minutes, for the cached | 57 | Number which specifies the time-to-live, in minutes, for the cached |
58 | version of the repository index page. Default value: "5". | 58 | version of the repository index page. Default value: "5". |
59 | 59 | ||
60 | cache-scanrc-ttl:: | 60 | cache-scanrc-ttl:: |
61 | Number which specifies the time-to-live, in minutes, for the result | 61 | Number which specifies the time-to-live, in minutes, for the result |
62 | of scanning a path for git repositories. Default value: "15". | 62 | of scanning a path for git repositories. Default value: "15". |
63 | 63 | ||
64 | cache-size:: | 64 | cache-size:: |
65 | The maximum number of entries in the cgit cache. Default value: "0" | 65 | The maximum number of entries in the cgit cache. Default value: "0" |
66 | (i.e. caching is disabled). | 66 | (i.e. caching is disabled). |
67 | 67 | ||
68 | cache-static-ttl:: | 68 | cache-static-ttl:: |
69 | Number which specifies the time-to-live, in minutes, for the cached | 69 | Number which specifies the time-to-live, in minutes, for the cached |
70 | version of repository pages accessed with a fixed SHA1. Default value: | 70 | version of repository pages accessed with a fixed SHA1. Default value: |
71 | "5". | 71 | "5". |
72 | 72 | ||
73 | clone-prefix:: | 73 | clone-prefix:: |
74 | Space-separated list of common prefixes which, when combined with a | 74 | Space-separated list of common prefixes which, when combined with a |
75 | repository url, generates valid clone urls for the repository. This | 75 | repository url, generates valid clone urls for the repository. This |
76 | setting is only used if `repo.clone-url` is unspecified. Default value: | 76 | setting is only used if `repo.clone-url` is unspecified. Default value: |
77 | none. | 77 | none. |
78 | 78 | ||
79 | commit-filter:: | 79 | commit-filter:: |
80 | Specifies a command which will be invoked to format commit messages. | 80 | Specifies a command which will be invoked to format commit messages. |
81 | The command will get the message on its STDIN, and the STDOUT from the | 81 | The command will get the message on its STDIN, and the STDOUT from the |
82 | command will be included verbatim as the commit message, i.e. this can | 82 | command will be included verbatim as the commit message, i.e. this can |
83 | be used to implement bugtracker integration. Default value: none. | 83 | be used to implement bugtracker integration. Default value: none. |
84 | 84 | ||
85 | css:: | 85 | css:: |
86 | Url which specifies the css document to include in all cgit pages. | 86 | Url which specifies the css document to include in all cgit pages. |
87 | Default value: "/cgit.css". | 87 | Default value: "/cgit.css". |
88 | 88 | ||
89 | embedded:: | 89 | embedded:: |
90 | Flag which, when set to "1", will make cgit generate a html fragment | 90 | Flag which, when set to "1", will make cgit generate a html fragment |
91 | suitable for embedding in other html pages. Default value: none. See | 91 | suitable for embedding in other html pages. Default value: none. See |
92 | also: "noheader". | 92 | also: "noheader". |
93 | 93 | ||
94 | enable-filter-overrides:: | 94 | enable-filter-overrides:: |
95 | Flag which, when set to "1", allows all filter settings to be | 95 | Flag which, when set to "1", allows all filter settings to be |
96 | overridden in repository-specific cgitrc files. Default value: none. | 96 | overridden in repository-specific cgitrc files. Default value: none. |
97 | 97 | ||
98 | enable-gitweb-owner:: | ||
99 | If set to "1" and scan-path is enabled, we first check each repository | ||
100 | for the git config value "gitweb.owner" to determine the owner. | ||
101 | Default value: "1". See also: scan-path. | ||
102 | |||
98 | enable-index-links:: | 103 | enable-index-links:: |
99 | Flag which, when set to "1", will make cgit generate extra links for | 104 | Flag which, when set to "1", will make cgit generate extra links for |
100 | each repo in the repository index (specifically, to the "summary", | 105 | each repo in the repository index (specifically, to the "summary", |
101 | "commit" and "tree" pages). Default value: "0". | 106 | "commit" and "tree" pages). Default value: "0". |
102 | 107 | ||
103 | enable-log-filecount:: | 108 | enable-log-filecount:: |
104 | Flag which, when set to "1", will make cgit print the number of | 109 | Flag which, when set to "1", will make cgit print the number of |
105 | modified files for each commit on the repository log page. Default | 110 | modified files for each commit on the repository log page. Default |
106 | value: "0". | 111 | value: "0". |
107 | 112 | ||
108 | enable-log-linecount:: | 113 | enable-log-linecount:: |
109 | Flag which, when set to "1", will make cgit print the number of added | 114 | Flag which, when set to "1", will make cgit print the number of added |
110 | and removed lines for each commit on the repository log page. Default | 115 | and removed lines for each commit on the repository log page. Default |
111 | value: "0". | 116 | value: "0". |
112 | 117 | ||
113 | enable-remote-branches:: | 118 | enable-remote-branches:: |
114 | Flag which, when set to "1", will make cgit display remote branches | 119 | Flag which, when set to "1", will make cgit display remote branches |
115 | in the summary and refs views. Default value: "0". See also: | 120 | in the summary and refs views. Default value: "0". See also: |
116 | "repo.enable-remote-branches". | 121 | "repo.enable-remote-branches". |
117 | 122 | ||
118 | enable-subject-links:: | 123 | enable-subject-links:: |
119 | Flag which, when set to "1", will make cgit use the subject of the | 124 | Flag which, when set to "1", will make cgit use the subject of the |
120 | parent commit as link text when generating links to parent commits | 125 | parent commit as link text when generating links to parent commits |
121 | in commit view. Default value: "0". See also: | 126 | in commit view. Default value: "0". See also: |
122 | "repo.enable-subject-links". | 127 | "repo.enable-subject-links". |
123 | 128 | ||
124 | enable-tree-linenumbers:: | 129 | enable-tree-linenumbers:: |
125 | Flag which, when set to "1", will make cgit generate linenumber links | 130 | Flag which, when set to "1", will make cgit generate linenumber links |
126 | for plaintext blobs printed in the tree view. Default value: "1". | 131 | for plaintext blobs printed in the tree view. Default value: "1". |
127 | 132 | ||
128 | favicon:: | 133 | favicon:: |
129 | Url used as link to a shortcut icon for cgit. If specified, it is | 134 | Url used as link to a shortcut icon for cgit. If specified, it is |
130 | suggested to use the value "/favicon.ico" since certain browsers will | 135 | suggested to use the value "/favicon.ico" since certain browsers will |
131 | ignore other values. Default value: none. | 136 | ignore other values. Default value: none. |
132 | 137 | ||
133 | footer:: | 138 | footer:: |
134 | The content of the file specified with this option will be included | 139 | The content of the file specified with this option will be included |
135 | verbatim at the bottom of all pages (i.e. it replaces the standard | 140 | verbatim at the bottom of all pages (i.e. it replaces the standard |
136 | "generated by..." message. Default value: none. | 141 | "generated by..." message. Default value: none. |
137 | 142 | ||
138 | head-include:: | 143 | head-include:: |
139 | The content of the file specified with this option will be included | 144 | The content of the file specified with this option will be included |
140 | verbatim in the html HEAD section on all pages. Default value: none. | 145 | verbatim in the html HEAD section on all pages. Default value: none. |
141 | 146 | ||
142 | header:: | 147 | header:: |
143 | The content of the file specified with this option will be included | 148 | The content of the file specified with this option will be included |
144 | verbatim at the top of all pages. Default value: none. | 149 | verbatim at the top of all pages. Default value: none. |
145 | 150 | ||
146 | include:: | 151 | include:: |
147 | Name of a configfile to include before the rest of the current config- | 152 | Name of a configfile to include before the rest of the current config- |
148 | file is parsed. Default value: none. | 153 | file is parsed. Default value: none. |
149 | 154 | ||
150 | index-header:: | 155 | index-header:: |
151 | The content of the file specified with this option will be included | 156 | The content of the file specified with this option will be included |
152 | verbatim above the repository index. This setting is deprecated, and | 157 | verbatim above the repository index. This setting is deprecated, and |
153 | will not be supported by cgit-1.0 (use root-readme instead). Default | 158 | will not be supported by cgit-1.0 (use root-readme instead). Default |
154 | value: none. | 159 | value: none. |
155 | 160 | ||
156 | index-info:: | 161 | index-info:: |
157 | The content of the file specified with this option will be included | 162 | The content of the file specified with this option will be included |
158 | verbatim below the heading on the repository index page. This setting | 163 | verbatim below the heading on the repository index page. This setting |
159 | is deprecated, and will not be supported by cgit-1.0 (use root-desc | 164 | is deprecated, and will not be supported by cgit-1.0 (use root-desc |
160 | instead). Default value: none. | 165 | instead). Default value: none. |
161 | 166 | ||
162 | local-time:: | 167 | local-time:: |
163 | Flag which, if set to "1", makes cgit print commit and tag times in the | 168 | Flag which, if set to "1", makes cgit print commit and tag times in the |
164 | servers timezone. Default value: "0". | 169 | servers timezone. Default value: "0". |
165 | 170 | ||
166 | logo:: | 171 | logo:: |
167 | Url which specifies the source of an image which will be used as a logo | 172 | Url which specifies the source of an image which will be used as a logo |
168 | on all cgit pages. Default value: "/cgit.png". | 173 | on all cgit pages. Default value: "/cgit.png". |
169 | 174 | ||
170 | logo-link:: | 175 | logo-link:: |
171 | Url loaded when clicking on the cgit logo image. If unspecified the | 176 | Url loaded when clicking on the cgit logo image. If unspecified the |
172 | calculated url of the repository index page will be used. Default | 177 | calculated url of the repository index page will be used. Default |
173 | value: none. | 178 | value: none. |
174 | 179 | ||
175 | max-atom-items:: | 180 | max-atom-items:: |
176 | Specifies the number of items to display in atom feeds view. Default | 181 | Specifies the number of items to display in atom feeds view. Default |
177 | value: "10". | 182 | value: "10". |
178 | 183 | ||
179 | max-commit-count:: | 184 | max-commit-count:: |
180 | Specifies the number of entries to list per page in "log" view. Default | 185 | Specifies the number of entries to list per page in "log" view. Default |
181 | value: "50". | 186 | value: "50". |
182 | 187 | ||
183 | max-message-length:: | 188 | max-message-length:: |
184 | Specifies the maximum number of commit message characters to display in | 189 | Specifies the maximum number of commit message characters to display in |
185 | "log" view. Default value: "80". | 190 | "log" view. Default value: "80". |
186 | 191 | ||
187 | max-repo-count:: | 192 | max-repo-count:: |
188 | Specifies the number of entries to list per page on therepository | 193 | Specifies the number of entries to list per page on therepository |
189 | index page. Default value: "50". | 194 | index page. Default value: "50". |
190 | 195 | ||
191 | max-repodesc-length:: | 196 | max-repodesc-length:: |
192 | Specifies the maximum number of repo description characters to display | 197 | Specifies the maximum number of repo description characters to display |
193 | on the repository index page. Default value: "80". | 198 | on the repository index page. Default value: "80". |
194 | 199 | ||
195 | max-blob-size:: | 200 | max-blob-size:: |
196 | Specifies the maximum size of a blob to display HTML for in KBytes. | 201 | Specifies the maximum size of a blob to display HTML for in KBytes. |
197 | Default value: "0" (limit disabled). | 202 | Default value: "0" (limit disabled). |
198 | 203 | ||
199 | max-stats:: | 204 | max-stats:: |
200 | Set the default maximum statistics period. Valid values are "week", | 205 | Set the default maximum statistics period. Valid values are "week", |
201 | "month", "quarter" and "year". If unspecified, statistics are | 206 | "month", "quarter" and "year". If unspecified, statistics are |
202 | disabled. Default value: none. See also: "repo.max-stats". | 207 | disabled. Default value: none. See also: "repo.max-stats". |
203 | 208 | ||
204 | mimetype.<ext>:: | 209 | mimetype.<ext>:: |
205 | Set the mimetype for the specified filename extension. This is used | 210 | Set the mimetype for the specified filename extension. This is used |
206 | by the `plain` command when returning blob content. | 211 | by the `plain` command when returning blob content. |
207 | 212 | ||
208 | module-link:: | 213 | module-link:: |
209 | Text which will be used as the formatstring for a hyperlink when a | 214 | Text which will be used as the formatstring for a hyperlink when a |
210 | submodule is printed in a directory listing. The arguments for the | 215 | submodule is printed in a directory listing. The arguments for the |
211 | formatstring are the path and SHA1 of the submodule commit. Default | 216 | formatstring are the path and SHA1 of the submodule commit. Default |
212 | value: "./?repo=%s&page=commit&id=%s" | 217 | value: "./?repo=%s&page=commit&id=%s" |
213 | 218 | ||
214 | nocache:: | 219 | nocache:: |
215 | If set to the value "1" caching will be disabled. This settings is | 220 | If set to the value "1" caching will be disabled. This settings is |
216 | deprecated, and will not be honored starting with cgit-1.0. Default | 221 | deprecated, and will not be honored starting with cgit-1.0. Default |
217 | value: "0". | 222 | value: "0". |
218 | 223 | ||
219 | noplainemail:: | 224 | noplainemail:: |
220 | If set to "1" showing full author email adresses will be disabled. | 225 | If set to "1" showing full author email adresses will be disabled. |
221 | Default value: "0". | 226 | Default value: "0". |
222 | 227 | ||
223 | noheader:: | 228 | noheader:: |
224 | Flag which, when set to "1", will make cgit omit the standard header | 229 | Flag which, when set to "1", will make cgit omit the standard header |
225 | on all pages. Default value: none. See also: "embedded". | 230 | on all pages. Default value: none. See also: "embedded". |