author | Jason A. Donenfeld <Jason@zx2c4.com> | 2010-07-29 15:52:29 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2010-08-04 01:09:32 (UTC) |
commit | 3516502aa0df95ecc241caa30161741f59e4e600 (patch) (unidiff) | |
tree | 345978808d18796444729f74eb139c8289bcb1c2 /cgit.h | |
parent | f9143171267e39f66a02ad2ecb0da2e8cc7f4142 (diff) | |
download | cgit-3516502aa0df95ecc241caa30161741f59e4e600.zip cgit-3516502aa0df95ecc241caa30161741f59e4e600.tar.gz cgit-3516502aa0df95ecc241caa30161741f59e4e600.tar.bz2 |
Add support for 'project-list' option
This option specifies the location of a projectlist file as used by
gitweb - when 'scan-tree' is later specified, only the projects listed in
the projectlist file will be added.
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-rw-r--r-- | cgit.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -105,128 +105,129 @@ struct commitinfo { | |||
105 | 105 | ||
106 | struct taginfo { | 106 | struct taginfo { |
107 | char *tagger; | 107 | char *tagger; |
108 | char *tagger_email; | 108 | char *tagger_email; |
109 | unsigned long tagger_date; | 109 | unsigned long tagger_date; |
110 | char *msg; | 110 | char *msg; |
111 | }; | 111 | }; |
112 | 112 | ||
113 | struct refinfo { | 113 | struct refinfo { |
114 | const char *refname; | 114 | const char *refname; |
115 | struct object *object; | 115 | struct object *object; |
116 | union { | 116 | union { |
117 | struct taginfo *tag; | 117 | struct taginfo *tag; |
118 | struct commitinfo *commit; | 118 | struct commitinfo *commit; |
119 | }; | 119 | }; |
120 | }; | 120 | }; |
121 | 121 | ||
122 | struct reflist { | 122 | struct reflist { |
123 | struct refinfo **refs; | 123 | struct refinfo **refs; |
124 | int alloc; | 124 | int alloc; |
125 | int count; | 125 | int count; |
126 | }; | 126 | }; |
127 | 127 | ||
128 | struct cgit_query { | 128 | struct cgit_query { |
129 | int has_symref; | 129 | int has_symref; |
130 | int has_sha1; | 130 | int has_sha1; |
131 | char *raw; | 131 | char *raw; |
132 | char *repo; | 132 | char *repo; |
133 | char *page; | 133 | char *page; |
134 | char *search; | 134 | char *search; |
135 | char *grep; | 135 | char *grep; |
136 | char *head; | 136 | char *head; |
137 | char *sha1; | 137 | char *sha1; |
138 | char *sha2; | 138 | char *sha2; |
139 | char *path; | 139 | char *path; |
140 | char *name; | 140 | char *name; |
141 | char *mimetype; | 141 | char *mimetype; |
142 | char *url; | 142 | char *url; |
143 | char *period; | 143 | char *period; |
144 | int ofs; | 144 | int ofs; |
145 | int nohead; | 145 | int nohead; |
146 | char *sort; | 146 | char *sort; |
147 | int showmsg; | 147 | int showmsg; |
148 | int ssdiff; | 148 | int ssdiff; |
149 | int show_all; | 149 | int show_all; |
150 | int context; | 150 | int context; |
151 | int ignorews; | 151 | int ignorews; |
152 | char *vpath; | 152 | char *vpath; |
153 | }; | 153 | }; |
154 | 154 | ||
155 | struct cgit_config { | 155 | struct cgit_config { |
156 | char *agefile; | 156 | char *agefile; |
157 | char *cache_root; | 157 | char *cache_root; |
158 | char *clone_prefix; | 158 | char *clone_prefix; |
159 | char *css; | 159 | char *css; |
160 | char *favicon; | 160 | char *favicon; |
161 | char *footer; | 161 | char *footer; |
162 | char *head_include; | 162 | char *head_include; |
163 | char *header; | 163 | char *header; |
164 | char *index_header; | 164 | char *index_header; |
165 | char *index_info; | 165 | char *index_info; |
166 | char *logo; | 166 | char *logo; |
167 | char *logo_link; | 167 | char *logo_link; |
168 | char *module_link; | 168 | char *module_link; |
169 | char *project_list; | ||
169 | char *robots; | 170 | char *robots; |
170 | char *root_title; | 171 | char *root_title; |
171 | char *root_desc; | 172 | char *root_desc; |
172 | char *root_readme; | 173 | char *root_readme; |
173 | char *script_name; | 174 | char *script_name; |
174 | char *section; | 175 | char *section; |
175 | char *virtual_root; | 176 | char *virtual_root; |
176 | int cache_size; | 177 | int cache_size; |
177 | int cache_dynamic_ttl; | 178 | int cache_dynamic_ttl; |
178 | int cache_max_create_time; | 179 | int cache_max_create_time; |
179 | int cache_repo_ttl; | 180 | int cache_repo_ttl; |
180 | int cache_root_ttl; | 181 | int cache_root_ttl; |
181 | int cache_scanrc_ttl; | 182 | int cache_scanrc_ttl; |
182 | int cache_static_ttl; | 183 | int cache_static_ttl; |
183 | int embedded; | 184 | int embedded; |
184 | int enable_filter_overrides; | 185 | int enable_filter_overrides; |
185 | int enable_index_links; | 186 | int enable_index_links; |
186 | int enable_log_filecount; | 187 | int enable_log_filecount; |
187 | int enable_log_linecount; | 188 | int enable_log_linecount; |
188 | int enable_remote_branches; | 189 | int enable_remote_branches; |
189 | int enable_subject_links; | 190 | int enable_subject_links; |
190 | int enable_tree_linenumbers; | 191 | int enable_tree_linenumbers; |
191 | int local_time; | 192 | int local_time; |
192 | int max_atom_items; | 193 | int max_atom_items; |
193 | int max_repo_count; | 194 | int max_repo_count; |
194 | int max_commit_count; | 195 | int max_commit_count; |
195 | int max_lock_attempts; | 196 | int max_lock_attempts; |
196 | int max_msg_len; | 197 | int max_msg_len; |
197 | int max_repodesc_len; | 198 | int max_repodesc_len; |
198 | int max_blob_size; | 199 | int max_blob_size; |
199 | int max_stats; | 200 | int max_stats; |
200 | int nocache; | 201 | int nocache; |
201 | int noplainemail; | 202 | int noplainemail; |
202 | int noheader; | 203 | int noheader; |
203 | int renamelimit; | 204 | int renamelimit; |
204 | int snapshots; | 205 | int snapshots; |
205 | int summary_branches; | 206 | int summary_branches; |
206 | int summary_log; | 207 | int summary_log; |
207 | int summary_tags; | 208 | int summary_tags; |
208 | int ssdiff; | 209 | int ssdiff; |
209 | struct string_list mimetypes; | 210 | struct string_list mimetypes; |
210 | struct cgit_filter *about_filter; | 211 | struct cgit_filter *about_filter; |
211 | struct cgit_filter *commit_filter; | 212 | struct cgit_filter *commit_filter; |
212 | struct cgit_filter *source_filter; | 213 | struct cgit_filter *source_filter; |
213 | }; | 214 | }; |
214 | 215 | ||
215 | struct cgit_page { | 216 | struct cgit_page { |
216 | time_t modified; | 217 | time_t modified; |
217 | time_t expires; | 218 | time_t expires; |
218 | size_t size; | 219 | size_t size; |
219 | char *mimetype; | 220 | char *mimetype; |
220 | char *charset; | 221 | char *charset; |
221 | char *filename; | 222 | char *filename; |
222 | char *etag; | 223 | char *etag; |
223 | char *title; | 224 | char *title; |
224 | int status; | 225 | int status; |
225 | char *statusmsg; | 226 | char *statusmsg; |
226 | }; | 227 | }; |
227 | 228 | ||
228 | struct cgit_environment { | 229 | struct cgit_environment { |
229 | char *cgit_config; | 230 | char *cgit_config; |
230 | char *http_host; | 231 | char *http_host; |
231 | char *https; | 232 | char *https; |
232 | char *no_http; | 233 | char *no_http; |