author | Lars Hjemli <hjemli@gmail.com> | 2007-05-11 10:12:48 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-05-11 10:12:48 (UTC) |
commit | ded9393b173853d2e960f9b176aeb0bc4ed35be2 (patch) (unidiff) | |
tree | 5c062b21e85ef0fe243ad900e9f4ffaf2ded0f62 /cgitrc | |
parent | cc1dbd1b5d610bd5e626f54d310f11cf47684ea1 (diff) | |
download | cgit-ded9393b173853d2e960f9b176aeb0bc4ed35be2.zip cgit-ded9393b173853d2e960f9b176aeb0bc4ed35be2.tar.gz cgit-ded9393b173853d2e960f9b176aeb0bc4ed35be2.tar.bz2 |
Add submodule links in tree listing
When a submodule occurs in a tree, generate a link to show the
module/commit. The link is specified as a sprintf string in /etc/cgitrc,
using parameters 'module-link' and 'repo.module-link'. This should probably
be extended with repo.module-link.$path.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgitrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1,84 +1,89 @@ | |||
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 | ## Specify a root for virtual urls. This makes cgit generate urls like | 15 | ## Specify a root for virtual urls. This makes cgit generate urls like |
16 | ## | 16 | ## |
17 | ## http://localhost/git/repo/log/?id=master | 17 | ## http://localhost/git/repo/log/?id=master |
18 | ## | 18 | ## |
19 | ## instead of | 19 | ## instead of |
20 | ## | 20 | ## |
21 | ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master | 21 | ## http://localhost/cgit/cgit.cgi?r=repo&p=log&id=master |
22 | ## | 22 | ## |
23 | ## For this to work with apache, rewrite rules must be added to httpd.conf, | 23 | ## For this to work with apache, rewrite rules must be added to httpd.conf, |
24 | ## possibly looking something like this: | 24 | ## possibly looking something like this: |
25 | ## | 25 | ## |
26 | ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA] | 26 | ## RewriteRule ^/git/$ /cgit/cgit.cgi [L,QSA] |
27 | ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA] | 27 | ## RewriteRule ^/git/([^/]+)/$ /cgit/cgit.cgi?r=$1 [L,QSA] |
28 | ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA] | 28 | ## RewriteRule ^/git/([^/]+)/([^/]+)/$ /cgit/cgit.cgi?r=$1&p=$2 [L,QSA] |
29 | ## | 29 | ## |
30 | ## This setting is disabled by default. | 30 | ## This setting is disabled by default. |
31 | #virtual-root=/git | 31 | #virtual-root=/git |
32 | 32 | ||
33 | 33 | ||
34 | ## Set the title printed on the root page | 34 | ## Set the title printed on the root page |
35 | #root-title=Git repository browser | 35 | #root-title=Git repository browser |
36 | 36 | ||
37 | 37 | ||
38 | ## Link to css file | 38 | ## Link to css file |
39 | #css=/cgit/cgit.css | 39 | #css=/cgit/cgit.css |
40 | 40 | ||
41 | 41 | ||
42 | ## Link to logo file | 42 | ## Link to logo file |
43 | #logo=/cgit/git-logo.png | 43 | #logo=/cgit/git-logo.png |
44 | 44 | ||
45 | 45 | ||
46 | ## Url loaded when clicking the logo | 46 | ## Url loaded when clicking the logo |
47 | #logo-link=http://www.kernel.org/pub/software/scm/git/docs/ | 47 | #logo-link=http://www.kernel.org/pub/software/scm/git/docs/ |
48 | 48 | ||
49 | 49 | ||
50 | ## Url loaded when clicking a submodule link | ||
51 | #module-link=./?repo=%s&page=commit&id=%s | ||
52 | |||
53 | |||
50 | ## Number of chars shown of commit subject message (in log view) | 54 | ## Number of chars shown of commit subject message (in log view) |
51 | #max-message-length=60 | 55 | #max-message-length=60 |
52 | 56 | ||
53 | 57 | ||
54 | ## Root of cached output | 58 | ## Root of cached output |
55 | #cache-root=/var/cache/cgit | 59 | #cache-root=/var/cache/cgit |
56 | 60 | ||
57 | 61 | ||
58 | ## | 62 | ## |
59 | ## Time-To-Live settings: specifies how long (in minutes) different pages | 63 | ## Time-To-Live settings: specifies how long (in minutes) different pages |
60 | ## should be cached (0 for instant expiration, -1 for immortal pages) | 64 | ## should be cached (0 for instant expiration, -1 for immortal pages) |
61 | ## | 65 | ## |
62 | 66 | ||
63 | ## ttl for root page | 67 | ## ttl for root page |
64 | #cache-root-ttl=5 | 68 | #cache-root-ttl=5 |
65 | 69 | ||
66 | ## ttl for repo summary page | 70 | ## ttl for repo summary page |
67 | #cache-repo-ttl=5 | 71 | #cache-repo-ttl=5 |
68 | 72 | ||
69 | ## ttl for other dynamic pages | 73 | ## ttl for other dynamic pages |
70 | #cache-dynamic-ttl=5 | 74 | #cache-dynamic-ttl=5 |
71 | 75 | ||
72 | ## ttl for static pages (addressed by SHA-1) | 76 | ## ttl for static pages (addressed by SHA-1) |
73 | #cache-static-ttl=-1 | 77 | #cache-static-ttl=-1 |
74 | 78 | ||
75 | 79 | ||
76 | 80 | ||
77 | ## Example repository entry. Required values are repo.url and repo.path (each | 81 | ## Example repository entry. Required values are repo.url and repo.path (each |
78 | ## repository section must start with repo.url). | 82 | ## repository section must start with repo.url). |
79 | #repo.url=cgit | 83 | #repo.url=cgit |
80 | #repo.name=cgit | 84 | #repo.name=cgit |
81 | #repo.desc=the caching cgi for git | 85 | #repo.desc=the caching cgi for git |
82 | #repo.path=/pub/git/cgit | 86 | #repo.path=/pub/git/cgit |
83 | #repo.owner=Lars Hjemli | 87 | #repo.owner=Lars Hjemli |
84 | #repo.snapshots=1 # override a sitewide snapshot-setting | 88 | #repo.snapshots=1 # override a sitewide snapshot-setting |
89 | #repo.module-link=/git/%s/commit/?id=%s # override the standard module-link | ||