author | Lars Hjemli <hjemli@gmail.com> | 2009-08-09 11:46:34 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2009-08-09 11:46:34 (UTC) |
commit | db8b8cb9467625cb8d9ecb67863aa67590e59cc0 (patch) (unidiff) | |
tree | d27644fc1b98ec6365e74f3ba40c19f78f8a287f /cgit.h | |
parent | db6303b58883c4417f5bcc0c1ee34fed6553dca3 (diff) | |
parent | 537c05f138d59c1eb3ac8e2d8b0dca3a38aa5dd4 (diff) | |
download | cgit-db8b8cb9467625cb8d9ecb67863aa67590e59cc0.zip cgit-db8b8cb9467625cb8d9ecb67863aa67590e59cc0.tar.gz cgit-db8b8cb9467625cb8d9ecb67863aa67590e59cc0.tar.bz2 |
Merge branch 'lh/about'
Conflicts:
cgit.h
-rw-r--r-- | cgit.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -53,48 +53,49 @@ struct cgit_filter { | |||
53 | char *cmd; | 53 | char *cmd; |
54 | char **argv; | 54 | char **argv; |
55 | int old_stdout; | 55 | int old_stdout; |
56 | int pipe_fh[2]; | 56 | int pipe_fh[2]; |
57 | int pid; | 57 | int pid; |
58 | int exitstatus; | 58 | int exitstatus; |
59 | }; | 59 | }; |
60 | 60 | ||
61 | struct cgit_repo { | 61 | struct cgit_repo { |
62 | char *url; | 62 | char *url; |
63 | char *name; | 63 | char *name; |
64 | char *path; | 64 | char *path; |
65 | char *desc; | 65 | char *desc; |
66 | char *owner; | 66 | char *owner; |
67 | char *defbranch; | 67 | char *defbranch; |
68 | char *group; | 68 | char *group; |
69 | char *module_link; | 69 | char *module_link; |
70 | char *readme; | 70 | char *readme; |
71 | char *clone_url; | 71 | char *clone_url; |
72 | int snapshots; | 72 | int snapshots; |
73 | int enable_log_filecount; | 73 | int enable_log_filecount; |
74 | int enable_log_linecount; | 74 | int enable_log_linecount; |
75 | int max_stats; | 75 | int max_stats; |
76 | time_t mtime; | 76 | time_t mtime; |
77 | struct cgit_filter *about_filter; | ||
77 | struct cgit_filter *commit_filter; | 78 | struct cgit_filter *commit_filter; |
78 | struct cgit_filter *source_filter; | 79 | struct cgit_filter *source_filter; |
79 | }; | 80 | }; |
80 | 81 | ||
81 | struct cgit_repolist { | 82 | struct cgit_repolist { |
82 | int length; | 83 | int length; |
83 | int count; | 84 | int count; |
84 | struct cgit_repo *repos; | 85 | struct cgit_repo *repos; |
85 | }; | 86 | }; |
86 | 87 | ||
87 | struct commitinfo { | 88 | struct commitinfo { |
88 | struct commit *commit; | 89 | struct commit *commit; |
89 | char *author; | 90 | char *author; |
90 | char *author_email; | 91 | char *author_email; |
91 | unsigned long author_date; | 92 | unsigned long author_date; |
92 | char *committer; | 93 | char *committer; |
93 | char *committer_email; | 94 | char *committer_email; |
94 | unsigned long committer_date; | 95 | unsigned long committer_date; |
95 | char *subject; | 96 | char *subject; |
96 | char *msg; | 97 | char *msg; |
97 | char *msg_encoding; | 98 | char *msg_encoding; |
98 | }; | 99 | }; |
99 | 100 | ||
100 | struct taginfo { | 101 | struct taginfo { |
@@ -167,48 +168,49 @@ struct cgit_config { | |||
167 | int cache_max_create_time; | 168 | int cache_max_create_time; |
168 | int cache_repo_ttl; | 169 | int cache_repo_ttl; |
169 | int cache_root_ttl; | 170 | int cache_root_ttl; |
170 | int cache_static_ttl; | 171 | int cache_static_ttl; |
171 | int embedded; | 172 | int embedded; |
172 | int enable_index_links; | 173 | int enable_index_links; |
173 | int enable_log_filecount; | 174 | int enable_log_filecount; |
174 | int enable_log_linecount; | 175 | int enable_log_linecount; |
175 | int local_time; | 176 | int local_time; |
176 | int max_repo_count; | 177 | int max_repo_count; |
177 | int max_commit_count; | 178 | int max_commit_count; |
178 | int max_lock_attempts; | 179 | int max_lock_attempts; |
179 | int max_msg_len; | 180 | int max_msg_len; |
180 | int max_repodesc_len; | 181 | int max_repodesc_len; |
181 | int max_stats; | 182 | int max_stats; |
182 | int nocache; | 183 | int nocache; |
183 | int noplainemail; | 184 | int noplainemail; |
184 | int noheader; | 185 | int noheader; |
185 | int renamelimit; | 186 | int renamelimit; |
186 | int snapshots; | 187 | int snapshots; |
187 | int summary_branches; | 188 | int summary_branches; |
188 | int summary_log; | 189 | int summary_log; |
189 | int summary_tags; | 190 | int summary_tags; |
190 | struct string_list mimetypes; | 191 | struct string_list mimetypes; |
192 | struct cgit_filter *about_filter; | ||
191 | struct cgit_filter *commit_filter; | 193 | struct cgit_filter *commit_filter; |
192 | struct cgit_filter *source_filter; | 194 | struct cgit_filter *source_filter; |
193 | }; | 195 | }; |
194 | 196 | ||
195 | struct cgit_page { | 197 | struct cgit_page { |
196 | time_t modified; | 198 | time_t modified; |
197 | time_t expires; | 199 | time_t expires; |
198 | size_t size; | 200 | size_t size; |
199 | char *mimetype; | 201 | char *mimetype; |
200 | char *charset; | 202 | char *charset; |
201 | char *filename; | 203 | char *filename; |
202 | char *etag; | 204 | char *etag; |
203 | char *title; | 205 | char *title; |
204 | int status; | 206 | int status; |
205 | char *statusmsg; | 207 | char *statusmsg; |
206 | }; | 208 | }; |
207 | 209 | ||
208 | struct cgit_context { | 210 | struct cgit_context { |
209 | struct cgit_query qry; | 211 | struct cgit_query qry; |
210 | struct cgit_config cfg; | 212 | struct cgit_config cfg; |
211 | struct cgit_repo *repo; | 213 | struct cgit_repo *repo; |
212 | struct cgit_page page; | 214 | struct cgit_page page; |
213 | }; | 215 | }; |
214 | 216 | ||