]> gitweb.ps.run Git - ps-cgit/blob - cgitrc.5.txt
cache: document negative ttls and add about ttl
[ps-cgit] / cgitrc.5.txt
1 :man source:   cgit
2 :man manual:   cgit
3
4 CGITRC(5)
5 ========
6
7
8 NAME
9 ----
10 cgitrc - runtime configuration for cgit
11
12
13 SYNOPSIS
14 --------
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
17 lines, and lines starting with '#', are ignored.
18
19
20 LOCATION
21 --------
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
24 defined, use its value instead.
25
26
27 GLOBAL SETTINGS
28 ---------------
29 about-filter::
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
32         get the content of the about-file on its STDIN, the name of the file
33         as the first argument, and the STDOUT from the command will be
34         included verbatim on the about page. Default value: none. See
35         also: "FILTER API".
36
37 agefile::
38         Specifies a path, relative to each repository path, which can be used
39         to specify the date and time of the youngest commit in the repository.
40         The first line in the file is used as input to the "parse_date"
41         function in libgit. Recommended timestamp-format is "yyyy-mm-dd
42         hh:mm:ss". Default value: "info/web/last-modified".
43
44 branch-sort::
45         Flag which, when set to "age", enables date ordering in the branch ref
46         list, and when set to "name" enables ordering by branch name. Default
47         value: "name".
48
49 cache-root::
50         Path used to store the cgit cache entries. Default value:
51         "/var/cache/cgit". See also: "MACRO EXPANSION".
52
53 cache-static-ttl::
54         Number which specifies the time-to-live, in minutes, for the cached
55         version of repository pages accessed with a fixed SHA1. Negative
56         values have infinite ttl. Default value: -1".
57
58 cache-dynamic-ttl::
59         Number which specifies the time-to-live, in minutes, for the cached
60         version of repository pages accessed without a fixed SHA1. Negative
61         values have infinite ttl. Default value: "5".
62
63 cache-repo-ttl::
64         Number which specifies the time-to-live, in minutes, for the cached
65         version of the repository summary page. Negative values have infinite
66         ttl. Default value: "5".
67
68 cache-root-ttl::
69         Number which specifies the time-to-live, in minutes, for the cached
70         version of the repository index page. Negative values have infinite
71         ttl. Default value: "5".
72
73 cache-scanrc-ttl::
74         Number which specifies the time-to-live, in minutes, for the result
75         of scanning a path for git repositories. Negative values have infinite
76         ttl. Default value: "15".
77
78 cache-about-ttl::
79         Number which specifies the time-to-live, in minutes, for the cached
80         version of the repository about page. Negative values have infinite
81         ttl. Default value: "15".
82
83 cache-size::
84         The maximum number of entries in the cgit cache. Default value: "0"
85         (i.e. caching is disabled).
86
87 case-sensitive-sort::
88         Sort items in the repo list case sensitively. Default value: "1".
89         See also: repository-sort, section-sort.
90
91 clone-prefix::
92         Space-separated list of common prefixes which, when combined with a
93         repository url, generates valid clone urls for the repository. This
94         setting is only used if `repo.clone-url` is unspecified. Default value:
95         none.
96
97 clone-url::
98         Space-separated list of clone-url templates. This setting is only
99         used if `repo.clone-url` is unspecified. Default value: none. See
100         also: "MACRO EXPANSION", "FILTER API".
101
102 commit-filter::
103         Specifies a command which will be invoked to format commit messages.
104         The command will get the message on its STDIN, and the STDOUT from the
105         command will be included verbatim as the commit message, i.e. this can
106         be used to implement bugtracker integration. Default value: none.
107         See also: "FILTER API".
108
109 commit-sort::
110         Flag which, when set to "date", enables strict date ordering in the
111         commit log, and when set to "topo" enables strict topological
112         ordering. If unset, the default ordering of "git log" is used. Default
113         value: unset.
114
115 css::
116         Url which specifies the css document to include in all cgit pages.
117         Default value: "/cgit.css".
118
119 embedded::
120         Flag which, when set to "1", will make cgit generate a html fragment
121         suitable for embedding in other html pages. Default value: none. See
122         also: "noheader".
123
124 enable-commit-graph::
125         Flag which, when set to "1", will make cgit print an ASCII-art commit
126         history graph to the left of the commit messages in the repository
127         log page. Default value: "0".
128
129 enable-filter-overrides::
130         Flag which, when set to "1", allows all filter settings to be
131         overridden in repository-specific cgitrc files. Default value: none.
132
133 enable-http-clone::
134         If set to "1", cgit will act as an dumb HTTP endpoint for git clones.
135         If you use an alternate way of serving git repositories, you may wish
136         to disable this. Default value: "1".
137
138 enable-index-links::
139         Flag which, when set to "1", will make cgit generate extra links for
140         each repo in the repository index (specifically, to the "summary",
141         "commit" and "tree" pages). Default value: "0".
142
143 enable-index-owner::
144         Flag which, when set to "1", will make cgit display the owner of
145         each repo in the repository index. Default value: "1".
146
147 enable-log-filecount::
148         Flag which, when set to "1", will make cgit print the number of
149         modified files for each commit on the repository log page. Default
150         value: "0".
151
152 enable-log-linecount::
153         Flag which, when set to "1", will make cgit print the number of added
154         and removed lines for each commit on the repository log page. Default
155         value: "0".
156
157 enable-remote-branches::
158         Flag which, when set to "1", will make cgit display remote branches
159         in the summary and refs views. Default value: "0". See also:
160         "repo.enable-remote-branches".
161
162 enable-subject-links::
163         Flag which, when set to "1", will make cgit use the subject of the
164         parent commit as link text when generating links to parent commits
165         in commit view. Default value: "0". See also:
166         "repo.enable-subject-links".
167
168 enable-tree-linenumbers::
169         Flag which, when set to "1", will make cgit generate linenumber links
170         for plaintext blobs printed in the tree view. Default value: "1".
171
172 enable-git-config::
173         Flag which, when set to "1", will allow cgit to use git config to set
174         any repo specific settings. This option is used in conjunction with
175         "scan-path", and must be defined prior, to augment repo-specific
176         settings. The keys gitweb.owner, gitweb.category, and gitweb.description
177         will map to the cgit keys repo.owner, repo.section, and repo.desc,
178         respectivly. All git config keys that begin with "cgit." will be mapped
179         to the corresponding "repo." key in cgit. Default value: "0". See also:
180         scan-path, section-from-path.
181
182 favicon::
183         Url used as link to a shortcut icon for cgit. It is suggested to use
184         the value "/favicon.ico" since certain browsers will ignore other
185         values. Default value: "/favicon.ico".
186
187 footer::
188         The content of the file specified with this option will be included
189         verbatim at the bottom of all pages (i.e. it replaces the standard
190         "generated by..." message. Default value: none.
191
192 head-include::
193         The content of the file specified with this option will be included
194         verbatim in the html HEAD section on all pages. Default value: none.
195
196 header::
197         The content of the file specified with this option will be included
198         verbatim at the top of all pages. Default value: none.
199
200 include::
201         Name of a configfile to include before the rest of the current config-
202         file is parsed. Default value: none. See also: "MACRO EXPANSION".
203
204 index-header::
205         The content of the file specified with this option will be included
206         verbatim above the repository index. This setting is deprecated, and
207         will not be supported by cgit-1.0 (use root-readme instead). Default
208         value: none.
209
210 index-info::
211         The content of the file specified with this option will be included
212         verbatim below the heading on the repository index page. This setting
213         is deprecated, and will not be supported by cgit-1.0 (use root-desc
214         instead). Default value: none.
215
216 local-time::
217         Flag which, if set to "1", makes cgit print commit and tag times in the
218         servers timezone. Default value: "0".
219
220 logo::
221         Url which specifies the source of an image which will be used as a logo
222         on all cgit pages. Default value: "/cgit.png".
223
224 logo-link::
225         Url loaded when clicking on the cgit logo image. If unspecified the
226         calculated url of the repository index page will be used. Default
227         value: none.
228
229 max-atom-items::
230         Specifies the number of items to display in atom feeds view. Default
231         value: "10".
232
233 max-commit-count::
234         Specifies the number of entries to list per page in "log" view. Default
235         value: "50".
236
237 max-message-length::
238         Specifies the maximum number of commit message characters to display in
239         "log" view. Default value: "80".
240
241 max-repo-count::
242         Specifies the number of entries to list per page on the repository
243         index page. Default value: "50".
244
245 max-repodesc-length::
246         Specifies the maximum number of repo description characters to display
247         on the repository index page. Default value: "80".
248
249 max-blob-size::
250         Specifies the maximum size of a blob to display HTML for in KBytes.
251         Default value: "0" (limit disabled).
252
253 max-stats::
254         Set the default maximum statistics period. Valid values are "week",
255         "month", "quarter" and "year". If unspecified, statistics are
256         disabled. Default value: none. See also: "repo.max-stats".
257
258 mimetype.<ext>::
259         Set the mimetype for the specified filename extension. This is used
260         by the `plain` command when returning blob content.
261
262 mimetype-file::
263         Specifies the file to use for automatic mimetype lookup. If specified
264         then this field is used as a fallback when no "mimetype.<ext>" match is
265         found. If unspecified then no such lookup is performed. The typical file
266         to use on a Linux system is /etc/mime.types. The format of the file must
267         comply to:
268         - a comment line is an empty line or a line starting with a hash (#),
269           optionally preceded by whitespace
270         - a non-comment line starts with the mimetype (like image/png), followed
271           by one or more file extensions (like jpg), all separated by whitespace
272         Default value: none. See also: "mimetype.<ext>".
273
274 module-link::
275         Text which will be used as the formatstring for a hyperlink when a
276         submodule is printed in a directory listing. The arguments for the
277         formatstring are the path and SHA1 of the submodule commit. Default
278         value: none.
279
280 nocache::
281         If set to the value "1" caching will be disabled. This settings is
282         deprecated, and will not be honored starting with cgit-1.0. Default
283         value: "0".
284
285 noplainemail::
286         If set to "1" showing full author email adresses will be disabled.
287         Default value: "0".
288
289 noheader::
290         Flag which, when set to "1", will make cgit omit the standard header
291         on all pages. Default value: none. See also: "embedded".
292
293 project-list::
294         A list of subdirectories inside of scan-path, relative to it, that
295         should loaded as git repositories. This must be defined prior to
296         scan-path. Default value: none. See also: scan-path, "MACRO
297         EXPANSION".
298
299 readme::
300         Text which will be used as default value for "repo.readme". Multiple
301         config keys may be specified, and cgit will use the first found file
302         in this list. This is useful in conjunction with scan-path. Default
303         value: none. See also: scan-path, repo.readme.
304
305 remove-suffix::
306         If set to "1" and scan-path is enabled, if any repositories are found
307         with a suffix of ".git", this suffix will be removed for the url and
308         name. This must be defined prior to scan-path. Default value: "0".
309         See also: scan-path.
310
311 renamelimit::
312         Maximum number of files to consider when detecting renames. The value
313          "-1" uses the compiletime value in git (for further info, look at
314           `man git-diff`). Default value: "-1".
315
316 repo.group::
317         Legacy alias for "section". This option is deprecated and will not be
318         supported in cgit-1.0.
319
320 repository-sort::
321         The way in which repositories in each section are sorted. Valid values
322         are "name" for sorting by the repo name or "age" for sorting by the
323         most recently updated repository. Default value: "name". See also:
324         section, case-sensitive-sort, section-sort.
325
326 robots::
327         Text used as content for the "robots" meta-tag. Default value:
328         "index, nofollow".
329
330 root-desc::
331         Text printed below the heading on the repository index page. Default
332         value: "a fast webinterface for the git dscm".
333
334 root-readme::
335         The content of the file specified with this option will be included
336         verbatim below the "about" link on the repository index page. Default
337         value: none.
338
339 root-title::
340         Text printed as heading on the repository index page. Default value:
341         "Git Repository Browser".
342
343 scan-hidden-path::
344         If set to "1" and scan-path is enabled, scan-path will recurse into
345         directories whose name starts with a period ('.'). Otherwise,
346         scan-path will stay away from such directories (considered as
347         "hidden"). Note that this does not apply to the ".git" directory in
348         non-bare repos. This must be defined prior to scan-path.
349         Default value: 0. See also: scan-path.
350
351 scan-path::
352         A path which will be scanned for repositories. If caching is enabled,
353         the result will be cached as a cgitrc include-file in the cache
354         directory. If project-list has been defined prior to scan-path,
355         scan-path loads only the directories listed in the file pointed to by
356         project-list. Be advised that only the global settings taken
357         before the scan-path directive will be applied to each repository.
358         Default value: none. See also: cache-scanrc-ttl, project-list,
359         "MACRO EXPANSION".
360
361 section::
362         The name of the current repository section - all repositories defined
363         after this option will inherit the current section name. Default value:
364         none.
365
366 section-sort::
367         Flag which, when set to "1", will sort the sections on the repository
368         listing by name. Set this flag to "0" if the order in the cgitrc file should
369         be preserved. Default value: "1". See also: section,
370         case-sensitive-sort, repository-sort.
371
372 section-from-path::
373         A number which, if defined prior to scan-path, specifies how many
374         path elements from each repo path to use as a default section name.
375         If negative, cgit will discard the specified number of path elements
376         above the repo directory. Default value: "0".
377
378 side-by-side-diffs::
379         If set to "1" shows side-by-side diffs instead of unidiffs per
380         default. Default value: "0".
381
382 snapshots::
383         Text which specifies the default set of snapshot formats generated by
384         cgit. The value is a space-separated list of zero or more of the
385         values "tar", "tar.gz", "tar.bz2", "tar.xz" and "zip". Default value:
386         none.
387
388 source-filter::
389         Specifies a command which will be invoked to format plaintext blobs
390         in the tree view. The command will get the blob content on its STDIN
391         and the name of the blob as its only command line argument. The STDOUT
392         from the command will be included verbatim as the blob contents, i.e.
393         this can be used to implement e.g. syntax highlighting. Default value:
394         none. See also: "FILTER API".
395
396 summary-branches::
397         Specifies the number of branches to display in the repository "summary"
398         view. Default value: "10".
399
400 summary-log::
401         Specifies the number of log entries to display in the repository
402         "summary" view. Default value: "10".
403
404 summary-tags::
405         Specifies the number of tags to display in the repository "summary"
406         view. Default value: "10".
407
408 strict-export::
409         Filename which, if specified, needs to be present within the repository
410         for cgit to allow access to that repository. This can be used to emulate
411         gitweb's EXPORT_OK and STRICT_EXPORT functionality and limit cgit's
412         repositories to match those exported by git-daemon. This option must
413         be defined prior to scan-path.
414
415 virtual-root::
416         Url which, if specified, will be used as root for all cgit links. It
417         will also cause cgit to generate 'virtual urls', i.e. urls like
418         '/cgit/tree/README' as opposed to '?r=cgit&p=tree&path=README'. Default
419         value: none.
420         NOTE: cgit has recently learned how to use PATH_INFO to achieve the
421         same kind of virtual urls, so this option will probably be deprecated.
422
423
424 REPOSITORY SETTINGS
425 -------------------
426 repo.about-filter::
427         Override the default about-filter. Default value: none. See also:
428         "enable-filter-overrides". See also: "FILTER API".
429
430 repo.branch-sort::
431         Flag which, when set to "age", enables date ordering in the branch ref
432         list, and when set to "name" enables ordering by branch name. Default
433         value: "name".
434
435 repo.clone-url::
436         A list of space-separated urls which can be used to clone this repo.
437         Default value: none. See also: "MACRO EXPANSION".
438
439 repo.commit-filter::
440         Override the default commit-filter. Default value: none. See also:
441         "enable-filter-overrides". See also: "FILTER API".
442
443 repo.commit-sort::
444         Flag which, when set to "date", enables strict date ordering in the
445         commit log, and when set to "topo" enables strict topological
446         ordering. If unset, the default ordering of "git log" is used. Default
447         value: unset.
448
449 repo.defbranch::
450         The name of the default branch for this repository. If no such branch
451         exists in the repository, the first branch name (when sorted) is used
452         as default instead. Default value: branch pointed to by HEAD, or
453         "master" if there is no suitable HEAD.
454
455 repo.desc::
456         The value to show as repository description. Default value: none.
457
458 repo.enable-commit-graph::
459         A flag which can be used to disable the global setting
460         `enable-commit-graph'. Default value: none.
461
462 repo.enable-log-filecount::
463         A flag which can be used to disable the global setting
464         `enable-log-filecount'. Default value: none.
465
466 repo.enable-log-linecount::
467         A flag which can be used to disable the global setting
468         `enable-log-linecount'. Default value: none.
469
470 repo.enable-remote-branches::
471         Flag which, when set to "1", will make cgit display remote branches
472         in the summary and refs views. Default value: <enable-remote-branches>.
473
474 repo.enable-subject-links::
475         A flag which can be used to override the global setting
476         `enable-subject-links'. Default value: none.
477
478 repo.logo::
479         Url which specifies the source of an image which will be used as a logo
480         on this repo's pages. Default value: global logo.
481
482 repo.logo-link::
483         Url loaded when clicking on the cgit logo image. If unspecified the
484         calculated url of the repository index page will be used. Default
485         value: global logo-link.
486
487 repo.module-link::
488         Text which will be used as the formatstring for a hyperlink when a
489         submodule is printed in a directory listing. The arguments for the
490         formatstring are the path and SHA1 of the submodule commit. Default
491         value: <module-link>
492
493 repo.module-link.<path>::
494         Text which will be used as the formatstring for a hyperlink when a
495         submodule with the specified subdirectory path is printed in a
496         directory listing. The only argument for the formatstring is the SHA1
497         of the submodule commit. Default value: none.
498
499 repo.max-stats::
500         Override the default maximum statistics period. Valid values are equal
501         to the values specified for the global "max-stats" setting. Default
502         value: none.
503
504 repo.name::
505         The value to show as repository name. Default value: <repo.url>.
506
507 repo.owner::
508         A value used to identify the owner of the repository. Default value:
509         none.
510
511 repo.path::
512         An absolute path to the repository directory. For non-bare repositories
513         this is the .git-directory. Default value: none.
514
515 repo.readme::
516         A path (relative to <repo.path>) which specifies a file to include
517         verbatim as the "About" page for this repo. You may also specify a
518         git refspec by head or by hash by prepending the refspec followed by
519         a colon. For example, "master:docs/readme.mkd". If the value begins
520         with a colon, i.e. ":docs/readme.rst", the default branch of the
521         repository will be used. Sharing any file will expose that entire
522         directory tree to the "/about/PATH" endpoints, so be sure that there
523         are no non-public files located in the same directory as the readme
524         file. Default value: <readme>.
525
526 repo.snapshots::
527         A mask of allowed snapshot-formats for this repo, restricted by the
528         "snapshots" global setting. Default value: <snapshots>.
529
530 repo.section::
531         Override the current section name for this repository. Default value:
532         none.
533
534 repo.source-filter::
535         Override the default source-filter. Default value: none. See also:
536         "enable-filter-overrides". See also: "FILTER API".
537
538 repo.url::
539         The relative url used to access the repository. This must be the first
540         setting specified for each repo. Default value: none.
541
542
543 REPOSITORY-SPECIFIC CGITRC FILE
544 -------------------------------
545 When the option "scan-path" is used to auto-discover git repositories, cgit
546 will try to parse the file "cgitrc" within any found repository. Such a
547 repo-specific config file may contain any of the repo-specific options
548 described above, except "repo.url" and "repo.path". Additionally, the "filter"
549 options are only acknowledged in repo-specific config files when
550 "enable-filter-overrides" is set to "1".
551
552 Note: the "repo." prefix is dropped from the option names in repo-specific
553 config files, e.g. "repo.desc" becomes "desc".
554
555
556 FILTER API
557 ----------
558 about filter::
559         This filter is given a single parameter: the filename of the source
560         file to filter. The filter can use the filename to determine (for
561         example) the type of syntax to follow when formatting the readme file.
562         The about text that is to be filtered is available on standard input
563         and the filtered text is expected on standard output.
564
565 commit filter::
566         This filter is given no arguments. The commit message text that is to
567         be filtered is available on standard input and the filtered text is
568         expected on standard output.
569
570 source filter::
571         This filter is given a single parameter: the filename of the source
572         file to filter. The filter can use the filename to determine (for
573         example) the syntax highlighting mode. The contents of the source
574         file that is to be filtered is available on standard input and the
575         filtered contents is expected on standard output.
576
577 Also, all filters are handed the following environment variables:
578
579 - CGIT_REPO_URL (from repo.url)
580 - CGIT_REPO_NAME (from repo.name)
581 - CGIT_REPO_PATH (from repo.path)
582 - CGIT_REPO_OWNER (from repo.owner)
583 - CGIT_REPO_DEFBRANCH (from repo.defbranch)
584 - CGIT_REPO_SECTION (from repo.section)
585 - CGIT_REPO_CLONE_URL (from repo.clone-url)
586
587 If a setting is not defined for a repository and the corresponding global
588 setting is also not defined (if applicable), then the corresponding
589 environment variable will be unset.
590
591
592 MACRO EXPANSION
593 ---------------
594 The following cgitrc options supports a simple macro expansion feature,
595 where tokens prefixed with "$" are replaced with the value of a similary
596 named environment variable:
597
598 - cache-root
599 - include
600 - project-list
601 - scan-path
602
603 Macro expansion will also happen on the content of $CGIT_CONFIG, if
604 defined.
605
606 One usage of this feature is virtual hosting, which in its simplest form
607 can be accomplished by adding the following line to /etc/cgitrc:
608
609         include=/etc/cgitrc.d/$HTTP_HOST
610
611 The following options are expanded during request processing, and support
612 the environment variables defined in "FILTER API":
613
614 - clone-url
615 - repo.clone-url
616
617
618 EXAMPLE CGITRC FILE
619 -------------------
620
621 ....
622 # Enable caching of up to 1000 output entriess
623 cache-size=1000
624
625
626 # Specify some default clone urls using macro expansion
627 clone-url=git://foo.org/$CGIT_REPO_URL git@foo.org:$CGIT_REPO_URL
628
629 # Specify the css url
630 css=/css/cgit.css
631
632
633 # Show owner on index page
634 enable-index-owner=1
635
636
637 # Allow http transport git clone
638 enable-git-clone=1
639
640
641 # Show extra links for each repository on the index page
642 enable-index-links=1
643
644
645 # Enable ASCII art commit history graph on the log pages
646 enable-commit-graph=1
647
648
649 # Show number of affected files per commit on the log pages
650 enable-log-filecount=1
651
652
653 # Show number of added/removed lines per commit on the log pages
654 enable-log-linecount=1
655
656
657 # Sort branches by date
658 branch-sort=age
659
660
661 # Add a cgit favicon
662 favicon=/favicon.ico
663
664
665 # Use a custom logo
666 logo=/img/mylogo.png
667
668
669 # Enable statistics per week, month and quarter
670 max-stats=quarter
671
672
673 # Set the title and heading of the repository index page
674 root-title=example.com git repositories
675
676
677 # Set a subheading for the repository index page
678 root-desc=tracking the foobar development
679
680
681 # Include some more info about example.com on the index page
682 root-readme=/var/www/htdocs/about.html
683
684
685 # Allow download of tar.gz, tar.bz2 and zip-files
686 snapshots=tar.gz tar.bz2 zip
687
688
689 ##
690 ## List of common mimetypes
691 ##
692
693 mimetype.gif=image/gif
694 mimetype.html=text/html
695 mimetype.jpg=image/jpeg
696 mimetype.jpeg=image/jpeg
697 mimetype.pdf=application/pdf
698 mimetype.png=image/png
699 mimetype.svg=image/svg+xml
700
701
702 # Highlight source code with python pygments-based highligher
703 source-filter=/var/www/cgit/filters/syntax-highlighting.py
704
705 # Format markdown, restructuredtext, manpages, text files, and html files
706 # through the right converters
707 about-filter=/var/www/cgit/filters/about-formatting.sh
708
709 ##
710 ## Search for these files in the root of the default branch of repositories
711 ## for coming up with the about page:
712 ##
713 readme=:README.md
714 readme=:readme.md
715 readme=:README.mkd
716 readme=:readme.mkd
717 readme=:README.rst
718 readme=:readme.rst
719 readme=:README.html
720 readme=:readme.html
721 readme=:README.htm
722 readme=:readme.htm
723 readme=:README.txt
724 readme=:readme.txt
725 readme=:README
726 readme=:readme
727 readme=:INSTALL.md
728 readme=:install.md
729 readme=:INSTALL.mkd
730 readme=:install.mkd
731 readme=:INSTALL.rst
732 readme=:install.rst
733 readme=:INSTALL.html
734 readme=:install.html
735 readme=:INSTALL.htm
736 readme=:install.htm
737 readme=:INSTALL.txt
738 readme=:install.txt
739 readme=:INSTALL
740 readme=:install
741
742
743 ##
744 ## List of repositories.
745 ## PS: Any repositories listed when section is unset will not be
746 ##     displayed under a section heading
747 ## PPS: This list could be kept in a different file (e.g. '/etc/cgitrepos')
748 ##      and included like this:
749 ##        include=/etc/cgitrepos
750 ##
751
752
753 repo.url=foo
754 repo.path=/pub/git/foo.git
755 repo.desc=the master foo repository
756 repo.owner=fooman@example.com
757 repo.readme=info/web/about.html
758
759
760 repo.url=bar
761 repo.path=/pub/git/bar.git
762 repo.desc=the bars for your foo
763 repo.owner=barman@example.com
764 repo.readme=info/web/about.html
765
766
767 # The next repositories will be displayed under the 'extras' heading
768 section=extras
769
770
771 repo.url=baz
772 repo.path=/pub/git/baz.git
773 repo.desc=a set of extensions for bar users
774
775 repo.url=wiz
776 repo.path=/pub/git/wiz.git
777 repo.desc=the wizard of foo
778
779
780 # Add some mirrored repositories
781 section=mirrors
782
783
784 repo.url=git
785 repo.path=/pub/git/git.git
786 repo.desc=the dscm
787
788
789 repo.url=linux
790 repo.path=/pub/git/linux.git
791 repo.desc=the kernel
792
793 # Disable adhoc downloads of this repo
794 repo.snapshots=0
795
796 # Disable line-counts for this repo
797 repo.enable-log-linecount=0
798
799 # Restrict the max statistics period for this repo
800 repo.max-stats=month
801 ....
802
803
804 BUGS
805 ----
806 Comments currently cannot appear on the same line as a setting; the comment
807 will be included as part of the value. E.g. this line:
808
809         robots=index  # allow indexing
810
811 will generate the following html element:
812
813         <meta name='robots' content='index  # allow indexing'/>
814
815
816
817 AUTHOR
818 ------
819 Lars Hjemli <hjemli@gmail.com>
820 Jason A. Donenfeld <Jason@zx2c4.com>