author | Lars Hjemli <hjemli@gmail.com> | 2007-06-29 18:32:08 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-06-29 18:32:08 (UTC) |
commit | 16a3d2779ccd56bf7954d98da547247d8796544b (patch) (unidiff) | |
tree | 86d2ed41adc3de842c7518d614ea49ca0200e4d2 /cgitrc | |
parent | f69250358a74efa5d7d9c562b2cdd80fad1430f1 (diff) | |
parent | 103940fe6b0914dc42b8b033d1d328f38135ca5f (diff) | |
download | cgit-16a3d2779ccd56bf7954d98da547247d8796544b.zip cgit-16a3d2779ccd56bf7954d98da547247d8796544b.tar.gz cgit-16a3d2779ccd56bf7954d98da547247d8796544b.tar.bz2 |
Merge branch 'lh/menu'
* lh/menu:
Add ofs argument to cgit_log_link and use it in ui-log.c
Add trim_end() and use it to remove trailing slashes from repo paths
Do not include current path in the "tree" menu link
Add setting to enable/disable extra links on index page
Change S/L/T to summary/log/tree
Change "files" to "tree"
Include querystring as part of cached filename for repo summary page
Add more menuitems on repo pages
-rw-r--r-- | cgitrc | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1,116 +1,120 @@ | |||
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 | ||
63 | ## Url loaded when clicking a submodule link | 67 | ## Url loaded when clicking a submodule link |
64 | #module-link=./?repo=%s&page=commit&id=%s | 68 | #module-link=./?repo=%s&page=commit&id=%s |
65 | 69 | ||
66 | 70 | ||
67 | ## Number of chars shown of repo description (in repolist view) | 71 | ## Number of chars shown of repo description (in repolist view) |
68 | #max-repodesc-length=60 | 72 | #max-repodesc-length=60 |
69 | 73 | ||
70 | 74 | ||
71 | ## Number of chars shown of commit subject message (in log view) | 75 | ## Number of chars shown of commit subject message (in log view) |
72 | #max-message-length=60 | 76 | #max-message-length=60 |
73 | 77 | ||
74 | 78 | ||
75 | ## Number of commits per page in log view | 79 | ## Number of commits per page in log view |
76 | #max-commit-count=50 | 80 | #max-commit-count=50 |
77 | 81 | ||
78 | 82 | ||
79 | ## Root of cached output | 83 | ## Root of cached output |
80 | #cache-root=/var/cache/cgit | 84 | #cache-root=/var/cache/cgit |
81 | 85 | ||
82 | 86 | ||
83 | ## Include another config-file | 87 | ## Include another config-file |
84 | #include=/var/cgit/repolist | 88 | #include=/var/cgit/repolist |
85 | 89 | ||
86 | ## | 90 | ## |
87 | ## Time-To-Live settings: specifies how long (in minutes) different pages | 91 | ## Time-To-Live settings: specifies how long (in minutes) different pages |
88 | ## should be cached (0 for instant expiration, -1 for immortal pages) | 92 | ## should be cached (0 for instant expiration, -1 for immortal pages) |
89 | ## | 93 | ## |
90 | 94 | ||
91 | ## ttl for root page | 95 | ## ttl for root page |
92 | #cache-root-ttl=5 | 96 | #cache-root-ttl=5 |
93 | 97 | ||
94 | ## ttl for repo summary page | 98 | ## ttl for repo summary page |
95 | #cache-repo-ttl=5 | 99 | #cache-repo-ttl=5 |
96 | 100 | ||
97 | ## ttl for other dynamic pages | 101 | ## ttl for other dynamic pages |
98 | #cache-dynamic-ttl=5 | 102 | #cache-dynamic-ttl=5 |
99 | 103 | ||
100 | ## ttl for static pages (addressed by SHA-1) | 104 | ## ttl for static pages (addressed by SHA-1) |
101 | #cache-static-ttl=-1 | 105 | #cache-static-ttl=-1 |
102 | 106 | ||
103 | 107 | ||
104 | 108 | ||
105 | ## Example repository entry. Required values are repo.url and repo.path (each | 109 | ## Example repository entry. Required values are repo.url and repo.path (each |
106 | ## repository section must start with repo.url). | 110 | ## repository section must start with repo.url). |
107 | #repo.url=cgit | 111 | #repo.url=cgit |
108 | #repo.name=cgit | 112 | #repo.name=cgit |
109 | #repo.desc=the caching cgi for git | 113 | #repo.desc=the caching cgi for git |
110 | #repo.path=/pub/git/cgit | 114 | #repo.path=/pub/git/cgit |
111 | #repo.owner=Lars Hjemli | 115 | #repo.owner=Lars Hjemli |
112 | #repo.snapshots=1 # override a sitewide snapshot-setting | 116 | #repo.snapshots=1 # override a sitewide snapshot-setting |
113 | #repo.enable-log-filecount=0 # override the default filecount setting | 117 | #repo.enable-log-filecount=0 # override the default filecount setting |
114 | #repo.enable-log-linecount=0 # override the default linecount setting | 118 | #repo.enable-log-linecount=0 # override the default linecount setting |
115 | #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link | 119 | #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 | 120 | #repo.readme=info/web/readme # specify a file to include on summary page |