]> git.cameronkatri.com Git - cgit.git/blob - cgitrc
Add cgit_commit_link() + support for id=sha1 to commit view
[cgit.git] / cgitrc
1 ##
2 ## cgitrc: template for /etc/cgitrc
3 ##
4
5
6 ## Uncomment and set to 1 to deactivate caching of generated pages. Mostly
7 ## usefull for testing.
8 #nocache=0
9
10
11 ## Enable/disable snapshots by default. This can be overridden per repo
12 #snapshots=0
13
14
15 ## Enable/disable display of 'number of files changed' in log view
16 #enable-log-filecount=0
17
18
19 ## Enable/disable display of 'number of lines changed' in log view
20 #enable-log-linecount=0
21
22
23 ## Enable/disable display of HEAD shortlog in summary view. Set it to maximum
24 ## number of commits that should be displayed
25 #summary-log=0
26
27
28 ## Specify a root for virtual urls. This makes cgit generate urls like
29 ##
30 ## http://localhost/git/repo/log/?id=master
31 ##
32 ## instead of
33 ##
34 ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master
35 ##
36 ## For this to work with apache, rewrite rules must be added to httpd.conf,
37 ## possibly looking something like this:
38 ##
39 ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA]
40 ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA]
41 ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA]
42 ##
43 ## This setting is disabled by default.
44 #virtual-root=/git
45
46
47 ## Set the title printed on the root page
48 #root-title=Git repository browser
49
50
51 ## Link to css file
52 #css=/cgit/cgit.css
53
54
55 ## Link to logo file
56 #logo=/cgit/git-logo.png
57
58
59 ## Url loaded when clicking the logo
60 #logo-link=http://www.kernel.org/pub/software/scm/git/docs/
61
62
63 ## Url loaded when clicking a submodule link
64 #module-link=./?repo=%s&page=commit&id=%s
65
66
67 ## Number of chars shown of repo description (in repolist view)
68 #max-repodesc-length=60
69
70
71 ## Number of chars shown of commit subject message (in log view)
72 #max-message-length=60
73
74
75 ## Number of commits per page in log view
76 #max-commit-count=50
77
78
79 ## Root of cached output
80 #cache-root=/var/cache/cgit
81
82
83 ## Include another config-file
84 #include=/var/cgit/repolist
85
86 ##
87 ## Time-To-Live settings: specifies how long (in minutes) different pages
88 ## should be cached (0 for instant expiration, -1 for immortal pages)
89 ##
90
91 ## ttl for root page
92 #cache-root-ttl=5
93
94 ## ttl for repo summary page
95 #cache-repo-ttl=5
96
97 ## ttl for other dynamic pages
98 #cache-dynamic-ttl=5
99
100 ## ttl for static pages (addressed by SHA-1)
101 #cache-static-ttl=-1
102
103
104
105 ## Example repository entry. Required values are repo.url and repo.path (each
106 ## repository section must start with repo.url).
107 #repo.url=cgit
108 #repo.name=cgit
109 #repo.desc=the caching cgi for git
110 #repo.path=/pub/git/cgit
111 #repo.owner=Lars Hjemli
112 #repo.snapshots=1 # override a sitewide snapshot-setting
113 #repo.enable-log-filecount=0 # override the default filecount setting
114 #repo.enable-log-linecount=0 # override the default linecount setting
115 #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link
116 #repo.readme=info/web/readme # specify a file to include on summary page