|
diff --git a/cgitrc b/cgitrc index ce0c01b..f1d8997 100644 --- a/ cgitrc+++ b/ cgitrc |
|
@@ -29,128 +29,132 @@ |
29 | ## Enable/disable display of 'number of lines changed' in log view |
29 | ## Enable/disable display of 'number of lines changed' in log view |
30 | #enable-log-linecount=0 |
30 | #enable-log-linecount=0 |
31 | |
31 | |
32 | |
32 | |
33 | ## Enable/disable display of HEAD shortlog in summary view. Set it to maximum |
33 | ## Enable/disable display of HEAD shortlog in summary view. Set it to maximum |
34 | ## number of commits that should be displayed |
34 | ## number of commits that should be displayed |
35 | #summary-log=0 |
35 | #summary-log=0 |
36 | |
36 | |
37 | |
37 | |
38 | ## Restrict the number of branches printed in summary view. Set to 0 to |
38 | ## Restrict the number of branches printed in summary view. Set to 0 to |
39 | ## print all branches. |
39 | ## print all branches. |
40 | #summary-branches=0 |
40 | #summary-branches=0 |
41 | |
41 | |
42 | |
42 | |
43 | ## Restrict the number of tags printed in summary view. Set to 0 to |
43 | ## Restrict the number of tags printed in summary view. Set to 0 to |
44 | ## print all tags. |
44 | ## print all tags. |
45 | #summary-tags=0 |
45 | #summary-tags=0 |
46 | |
46 | |
47 | |
47 | |
48 | ## The "Idle" column on the repository index page can read a timestamp |
48 | ## The "Idle" column on the repository index page can read a timestamp |
49 | ## from the specified agefile (if this file cannot be found, the mtime |
49 | ## from the specified agefile (if this file cannot be found, the mtime |
50 | ## of HEAD is used). |
50 | ## of HEAD is used). |
51 | ## The cgit repo on hjemli.net uses the the following command in it's |
51 | ## The cgit repo on hjemli.net uses the the following command in it's |
52 | ## post-receive hook to update the age-file: |
52 | ## post-receive hook to update the age-file: |
53 | ## git-for-each-ref --format="%(committerdate)" --sort=-committerdate \ |
53 | ## git-for-each-ref --format="%(committerdate)" --sort=-committerdate \ |
54 | ## --count=1 > $GIT_DIR/info/web/last-modifie |
54 | ## --count=1 > $GIT_DIR/info/web/last-modifie |
55 | ## |
55 | ## |
56 | #agefile=info/web/last-modified |
56 | #agefile=info/web/last-modified |
57 | |
57 | |
58 | |
58 | |
59 | ## Git detects renames, but with a limit on the number of files to |
59 | ## Git detects renames, but with a limit on the number of files to |
60 | ## consider. This option can be used to specify another limit (or -1 to |
60 | ## consider. This option can be used to specify another limit (or -1 to |
61 | ## use the default limit). |
61 | ## use the default limit). |
62 | ## |
62 | ## |
63 | #renamelimit=-1 |
63 | #renamelimit=-1 |
64 | |
64 | |
65 | |
65 | |
66 | ## Specify a root for virtual urls. This makes cgit generate urls like |
66 | ## Specify a root for virtual urls. This makes cgit generate urls like |
67 | ## |
67 | ## |
68 | ## http://localhost/git/repo/log/?h=branch |
68 | ## http://localhost/git/repo/log/?h=branch |
69 | ## |
69 | ## |
70 | ## instead of |
70 | ## instead of |
71 | ## |
71 | ## |
72 | ## http://localhost/cgit/cgit.cgi?url=repo/log&h=branch |
72 | ## http://localhost/cgit/cgit.cgi?url=repo/log&h=branch |
73 | ## |
73 | ## |
74 | ## For this to work with apache, a rewrite rule must be added to httpd.conf, |
74 | ## For this to work with apache, a rewrite rule must be added to httpd.conf, |
75 | ## possibly looking something like this: |
75 | ## possibly looking something like this: |
76 | ## |
76 | ## |
77 | ## RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1 [L,QSA] |
77 | ## RewriteRule ^/git/(.*)$ /cgit/cgit.cgi?url=$1 [L,QSA] |
78 | ## |
78 | ## |
79 | ## For this to work with lighttpd, the rewrite rule should look more like this: |
79 | ## For this to work with lighttpd, the rewrite rule should look more like this: |
80 | ## |
80 | ## |
81 | ## url.rewrite = ( |
81 | ## url.rewrite = ( |
82 | ## "^/git/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2" |
82 | ## "^/git/([^?/]+/[^?]*)?(?:\?(.*))?$" => "/cgit.cgi?url=$1&$2" |
83 | ## ) |
83 | ## ) |
84 | ## |
84 | ## |
85 | ## This setting is disabled by default. |
85 | ## This setting is disabled by default. |
86 | #virtual-root=/git |
86 | #virtual-root=/git |
87 | |
87 | |
88 | |
88 | |
89 | ## Set the title printed on the root page |
89 | ## Set the title printed on the root page |
90 | #root-title=Git repository browser |
90 | #root-title=Git repository browser |
91 | |
91 | |
92 | |
92 | |
| |
93 | ## Set the description printed on the root page |
| |
94 | #root-desc=a fast web interface for the git dscm |
| |
95 | |
| |
96 | |
93 | ## If specified, the file at this path will be included as HTML in the |
97 | ## If specified, the file at this path will be included as HTML in the |
94 | ## sidebar on the repository index page |
98 | ## sidebar on the repository index page |
95 | #index-info= |
99 | #index-info= |
96 | |
100 | |
97 | |
101 | |
98 | ## If specified, the file at this path will be included as HTML above |
102 | ## If specified, the file at this path will be included as HTML above |
99 | ## the repository index |
103 | ## the repository index |
100 | #index-header= |
104 | #index-header= |
101 | |
105 | |
102 | |
106 | |
103 | ## Link to css file |
107 | ## Link to css file |
104 | #css=/cgit/cgit.css |
108 | #css=/cgit/cgit.css |
105 | |
109 | |
106 | |
110 | |
107 | ## Link to logo file |
111 | ## Link to logo file |
108 | #logo=/cgit/git-logo.png |
112 | #logo=/cgit/git-logo.png |
109 | |
113 | |
110 | |
114 | |
111 | ## Url loaded when clicking the logo |
115 | ## Url loaded when clicking the logo |
112 | #logo-link=http://www.kernel.org/pub/software/scm/git/docs/ |
116 | #logo-link=http://www.kernel.org/pub/software/scm/git/docs/ |
113 | |
117 | |
114 | |
118 | |
115 | ## Url loaded when clicking a submodule link |
119 | ## Url loaded when clicking a submodule link |
116 | #module-link=./?repo=%s&page=commit&id=%s |
120 | #module-link=./?repo=%s&page=commit&id=%s |
117 | |
121 | |
118 | |
122 | |
119 | ## Shared prefix which, when combined with repo url, becomes the url used |
123 | ## Shared prefix which, when combined with repo url, becomes the url used |
120 | ## to clone the repo |
124 | ## to clone the repo |
121 | #clone-prefix= |
125 | #clone-prefix= |
122 | |
126 | |
123 | |
127 | |
124 | ## Number of chars shown of repo description (in repolist view) |
128 | ## Number of chars shown of repo description (in repolist view) |
125 | #max-repodesc-length=60 |
129 | #max-repodesc-length=60 |
126 | |
130 | |
127 | |
131 | |
128 | ## Number of chars shown of commit subject message (in log view) |
132 | ## Number of chars shown of commit subject message (in log view) |
129 | #max-message-length=60 |
133 | #max-message-length=60 |
130 | |
134 | |
131 | |
135 | |
132 | ## Number of commits per page in log view |
136 | ## Number of commits per page in log view |
133 | #max-commit-count=50 |
137 | #max-commit-count=50 |
134 | |
138 | |
135 | |
139 | |
136 | ## Root of cached output |
140 | ## Root of cached output |
137 | #cache-root=/var/cache/cgit |
141 | #cache-root=/var/cache/cgit |
138 | |
142 | |
139 | |
143 | |
140 | ## Include another config-file |
144 | ## Include another config-file |
141 | #include=/var/cgit/repolist |
145 | #include=/var/cgit/repolist |
142 | |
146 | |
143 | ## |
147 | ## |
144 | ## Time-To-Live settings: specifies how long (in minutes) different pages |
148 | ## Time-To-Live settings: specifies how long (in minutes) different pages |
145 | ## should be cached (0 for instant expiration, -1 for immortal pages) |
149 | ## should be cached (0 for instant expiration, -1 for immortal pages) |
146 | ## |
150 | ## |
147 | |
151 | |
148 | ## ttl for root page |
152 | ## ttl for root page |
149 | #cache-root-ttl=5 |
153 | #cache-root-ttl=5 |
150 | |
154 | |
151 | ## ttl for repo summary page |
155 | ## ttl for repo summary page |
152 | #cache-repo-ttl=5 |
156 | #cache-repo-ttl=5 |
153 | |
157 | |
154 | ## ttl for other dynamic pages |
158 | ## ttl for other dynamic pages |
155 | #cache-dynamic-ttl=5 |
159 | #cache-dynamic-ttl=5 |
156 | |
160 | |
|