|
diff --git a/cgitrc b/cgitrc index 0f602e4..40877f8 100644 --- a/ cgitrc+++ b/ cgitrc |
|
@@ -1,62 +1,66 @@ |
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 | ## Enable/disable snapshots by default. This can be overridden per repo |
11 | ## Enable/disable snapshots by default. This can be overridden per repo |
12 | #snapshots=0 |
12 | #snapshots=0 |
13 | |
13 | |
14 | |
14 | |
| |
15 | ## Enable/disable extra links to summary/log/tree per repo on index page |
| |
16 | #enable-index-links=0 |
| |
17 | |
| |
18 | |
15 | ## Enable/disable display of 'number of files changed' in log view |
19 | ## Enable/disable display of 'number of files changed' in log view |
16 | #enable-log-filecount=0 |
20 | #enable-log-filecount=0 |
17 | |
21 | |
18 | |
22 | |
19 | ## Enable/disable display of 'number of lines changed' in log view |
23 | ## Enable/disable display of 'number of lines changed' in log view |
20 | #enable-log-linecount=0 |
24 | #enable-log-linecount=0 |
21 | |
25 | |
22 | |
26 | |
23 | ## Enable/disable display of HEAD shortlog in summary view. Set it to maximum |
27 | ## Enable/disable display of HEAD shortlog in summary view. Set it to maximum |
24 | ## number of commits that should be displayed |
28 | ## number of commits that should be displayed |
25 | #summary-log=0 |
29 | #summary-log=0 |
26 | |
30 | |
27 | |
31 | |
28 | ## Specify a root for virtual urls. This makes cgit generate urls like |
32 | ## Specify a root for virtual urls. This makes cgit generate urls like |
29 | ## |
33 | ## |
30 | ## http://localhost/git/repo/log/?id=master |
34 | ## http://localhost/git/repo/log/?id=master |
31 | ## |
35 | ## |
32 | ## instead of |
36 | ## instead of |
33 | ## |
37 | ## |
34 | ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master |
38 | ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master |
35 | ## |
39 | ## |
36 | ## For this to work with apache, rewrite rules must be added to httpd.conf, |
40 | ## For this to work with apache, rewrite rules must be added to httpd.conf, |
37 | ## possibly looking something like this: |
41 | ## possibly looking something like this: |
38 | ## |
42 | ## |
39 | ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA] |
43 | ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA] |
40 | ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA] |
44 | ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA] |
41 | ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA] |
45 | ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA] |
42 | ## |
46 | ## |
43 | ## This setting is disabled by default. |
47 | ## This setting is disabled by default. |
44 | #virtual-root=/git |
48 | #virtual-root=/git |
45 | |
49 | |
46 | |
50 | |
47 | ## Set the title printed on the root page |
51 | ## Set the title printed on the root page |
48 | #root-title=Git repository browser |
52 | #root-title=Git repository browser |
49 | |
53 | |
50 | |
54 | |
51 | ## Link to css file |
55 | ## Link to css file |
52 | #css=/cgit/cgit.css |
56 | #css=/cgit/cgit.css |
53 | |
57 | |
54 | |
58 | |
55 | ## Link to logo file |
59 | ## Link to logo file |
56 | #logo=/cgit/git-logo.png |
60 | #logo=/cgit/git-logo.png |
57 | |
61 | |
58 | |
62 | |
59 | ## Url loaded when clicking the logo |
63 | ## Url loaded when clicking the logo |
60 | #logo-link=http://www.kernel.org/pub/software/scm/git/docs/ |
64 | #logo-link=http://www.kernel.org/pub/software/scm/git/docs/ |
61 | |
65 | |
62 | |
66 | |
|